# 0 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/Sources/System/Panic.cc" # 0 "" # 0 "" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 0 "" 2 # 1 "/usr/include/c++/15/cstring" 1 3 # 47 "/usr/include/c++/15/cstring" 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 51 "/usr/include/c++/15/bits/version.h" 3 # 1 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++config.h" 1 3 # 37 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++config.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wvariadic-macros" #pragma GCC diagnostic ignored "-Wc++11-extensions" #pragma GCC diagnostic ignored "-Wc++23-extensions" # 336 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++config.h" 3 namespace std { typedef long unsigned int size_t; typedef long int ptrdiff_t; typedef decltype(nullptr) nullptr_t; #pragma GCC visibility push(default) extern "C++" __attribute__ ((__noreturn__, __always_inline__)) inline void __terminate() noexcept { void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); terminate(); } #pragma GCC visibility pop } # 369 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++config.h" 3 namespace std { inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } } namespace __gnu_cxx { inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } } # 573 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++config.h" 3 namespace std { #pragma GCC visibility push(default) __attribute__((__always_inline__)) constexpr inline bool __is_constant_evaluated() noexcept { if consteval { return true; } else { return false; } } #pragma GCC visibility pop } # 617 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++config.h" 3 namespace std { #pragma GCC visibility push(default) extern "C++" __attribute__ ((__noreturn__)) __attribute__((__cold__)) void __glibcxx_assert_fail (const char* __file, int __line, const char* __function, const char* __condition) noexcept; #pragma GCC visibility pop } # 648 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++config.h" 3 namespace std { __attribute__((__always_inline__,__visibility__("default"))) inline void __glibcxx_assert_fail() { } } # 727 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++config.h" 3 # 1 "/usr/include/x86_64-linux-gnu/c++/15/bits/os_defines.h" 1 3 # 39 "/usr/include/x86_64-linux-gnu/c++/15/bits/os_defines.h" 3 # 1 "/usr/include/features.h" 1 3 4 # 431 "/usr/include/features.h" 3 4 # 1 "/usr/include/features-time64.h" 1 3 4 # 20 "/usr/include/features-time64.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 21 "/usr/include/features-time64.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/timesize.h" 1 3 4 # 19 "/usr/include/x86_64-linux-gnu/bits/timesize.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 20 "/usr/include/x86_64-linux-gnu/bits/timesize.h" 2 3 4 # 22 "/usr/include/features-time64.h" 2 3 4 # 432 "/usr/include/features.h" 2 3 4 # 539 "/usr/include/features.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 1 3 4 # 730 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 731 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/long-double.h" 1 3 4 # 732 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 2 3 4 # 540 "/usr/include/features.h" 2 3 4 # 563 "/usr/include/features.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/gnu/stubs.h" 1 3 4 # 10 "/usr/include/x86_64-linux-gnu/gnu/stubs.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/gnu/stubs-64.h" 1 3 4 # 11 "/usr/include/x86_64-linux-gnu/gnu/stubs.h" 2 3 4 # 564 "/usr/include/features.h" 2 3 4 # 40 "/usr/include/x86_64-linux-gnu/c++/15/bits/os_defines.h" 2 3 # 728 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++config.h" 2 3 # 1 "/usr/include/x86_64-linux-gnu/c++/15/bits/cpu_defines.h" 1 3 # 731 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++config.h" 2 3 # 887 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++config.h" 3 namespace __gnu_cxx { typedef __decltype(0.0bf16) __bfloat16_t; } # 949 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++config.h" 3 # 1 "/usr/include/c++/15/pstl/pstl_config.h" 1 3 # 950 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++config.h" 2 3 #pragma GCC diagnostic pop # 52 "/usr/include/c++/15/bits/version.h" 2 3 # 48 "/usr/include/c++/15/cstring" 2 3 # 1 "/usr/include/string.h" 1 3 4 # 26 "/usr/include/string.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4 # 27 "/usr/include/string.h" 2 3 4 extern "C" { # 37 "/usr/include/string.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h" 1 3 4 # 229 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h" 3 4 typedef long unsigned int size_t; # 38 "/usr/include/string.h" 2 3 4 # 47 "/usr/include/string.h" 3 4 extern void *memcpy (void *__restrict __dest, const void *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern void *memmove (void *__dest, const void *__src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern void *memccpy (void *__restrict __dest, const void *__restrict __src, int __c, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 4))); extern void *memset (void *__s, int __c, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); extern void *memset_explicit (void *__s, int __c, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) ; extern int memcmp (const void *__s1, const void *__s2, size_t __n) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); # 91 "/usr/include/string.h" 3 4 extern int __memcmpeq (const void *__s1, const void *__s2, size_t __n) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern "C++" { extern void *memchr (void *__s, int __c, size_t __n) noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern const void *memchr (const void *__s, int __c, size_t __n) noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) void * memchr (void *__s, int __c, size_t __n) noexcept (true) { return __builtin_memchr (__s, __c, __n); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const void * memchr (const void *__s, int __c, size_t __n) noexcept (true) { return __builtin_memchr (__s, __c, __n); } } # 130 "/usr/include/string.h" 3 4 extern "C++" void *rawmemchr (void *__s, int __c) noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern "C++" const void *rawmemchr (const void *__s, int __c) noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern "C++" void *memrchr (void *__s, int __c, size_t __n) noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__read_only__, 1, 3))); extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__read_only__, 1, 3))); # 156 "/usr/include/string.h" 3 4 extern char *strcpy (char *__restrict __dest, const char *__restrict __src) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern char *strncpy (char *__restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern char *strcat (char *__restrict __dest, const char *__restrict __src) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern char *strncat (char *__restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int strcmp (const char *__s1, const char *__s2) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strncmp (const char *__s1, const char *__s2, size_t __n) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strcoll (const char *__s1, const char *__s2) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern size_t strxfrm (char *__restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 1, 3))); # 1 "/usr/include/x86_64-linux-gnu/bits/types/locale_t.h" 1 3 4 # 22 "/usr/include/x86_64-linux-gnu/bits/types/locale_t.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h" 3 4 struct __locale_struct { struct __locale_data *__locales[13]; const unsigned short int *__ctype_b; const int *__ctype_tolower; const int *__ctype_toupper; const char *__names[13]; }; typedef struct __locale_struct *__locale_t; # 23 "/usr/include/x86_64-linux-gnu/bits/types/locale_t.h" 2 3 4 typedef __locale_t locale_t; # 188 "/usr/include/string.h" 2 3 4 extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, locale_t __l) noexcept (true) __attribute__ ((__nonnull__ (2, 4))) __attribute__ ((__access__ (__write_only__, 1, 3))); extern char *strdup (const char *__s) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); extern char *strndup (const char *__string, size_t __n) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); # 239 "/usr/include/string.h" 3 4 extern "C++" { extern char *strchr (char *__s, int __c) noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern const char *strchr (const char *__s, int __c) noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * strchr (char *__s, int __c) noexcept (true) { return __builtin_strchr (__s, __c); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * strchr (const char *__s, int __c) noexcept (true) { return __builtin_strchr (__s, __c); } } # 270 "/usr/include/string.h" 3 4 extern "C++" { extern char *strrchr (char *__s, int __c) noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern const char *strrchr (const char *__s, int __c) noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * strrchr (char *__s, int __c) noexcept (true) { return __builtin_strrchr (__s, __c); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * strrchr (const char *__s, int __c) noexcept (true) { return __builtin_strrchr (__s, __c); } } # 304 "/usr/include/string.h" 3 4 extern "C++" char *strchrnul (char *__s, int __c) noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern "C++" const char *strchrnul (const char *__s, int __c) noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 316 "/usr/include/string.h" 3 4 extern size_t strcspn (const char *__s, const char *__reject) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern size_t strspn (const char *__s, const char *__accept) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern "C++" { extern char *strpbrk (char *__s, const char *__accept) noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern const char *strpbrk (const char *__s, const char *__accept) noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * strpbrk (char *__s, const char *__accept) noexcept (true) { return __builtin_strpbrk (__s, __accept); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * strpbrk (const char *__s, const char *__accept) noexcept (true) { return __builtin_strpbrk (__s, __accept); } } # 355 "/usr/include/string.h" 3 4 extern "C++" { extern char *strstr (char *__haystack, const char *__needle) noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern const char *strstr (const char *__haystack, const char *__needle) noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * strstr (char *__haystack, const char *__needle) noexcept (true) { return __builtin_strstr (__haystack, __needle); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * strstr (const char *__haystack, const char *__needle) noexcept (true) { return __builtin_strstr (__haystack, __needle); } } # 388 "/usr/include/string.h" 3 4 extern char *strtok (char *__restrict __s, const char *__restrict __delim) noexcept (true) __attribute__ ((__nonnull__ (2))); extern char *__strtok_r (char *__restrict __s, const char *__restrict __delim, char **__restrict __save_ptr) noexcept (true) __attribute__ ((__nonnull__ (2, 3))); extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, char **__restrict __save_ptr) noexcept (true) __attribute__ ((__nonnull__ (2, 3))); extern "C++" char *strcasestr (char *__haystack, const char *__needle) noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern "C++" const char *strcasestr (const char *__haystack, const char *__needle) noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); # 421 "/usr/include/string.h" 3 4 extern void *memmem (const void *__haystack, size_t __haystacklen, const void *__needle, size_t __needlelen) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__access__ (__read_only__, 1, 2))) __attribute__ ((__access__ (__read_only__, 3, 4))); extern void *__mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern void *mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern size_t strlen (const char *__s) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern size_t strnlen (const char *__string, size_t __maxlen) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern char *strerror (int __errnum) noexcept (true); # 476 "/usr/include/string.h" 3 4 extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); extern const char *strerrordesc_np (int __err) noexcept (true); extern const char *strerrorname_np (int __err) noexcept (true); extern char *strerror_l (int __errnum, locale_t __l) noexcept (true); # 1 "/usr/include/strings.h" 1 3 4 # 23 "/usr/include/strings.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h" 1 3 4 # 24 "/usr/include/strings.h" 2 3 4 extern "C" { extern int bcmp (const void *__s1, const void *__s2, size_t __n) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern void bcopy (const void *__src, void *__dest, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern void bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); extern "C++" { extern char *index (char *__s, int __c) noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern const char *index (const char *__s, int __c) noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * index (char *__s, int __c) noexcept (true) { return __builtin_index (__s, __c); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * index (const char *__s, int __c) noexcept (true) { return __builtin_index (__s, __c); } } extern "C++" { extern char *rindex (char *__s, int __c) noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern const char *rindex (const char *__s, int __c) noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * rindex (char *__s, int __c) noexcept (true) { return __builtin_rindex (__s, __c); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * rindex (const char *__s, int __c) noexcept (true) { return __builtin_rindex (__s, __c); } } # 104 "/usr/include/strings.h" 3 4 extern int ffs (int __i) noexcept (true) __attribute__ ((__const__)); extern int ffsl (long int __l) noexcept (true) __attribute__ ((__const__)); __extension__ extern int ffsll (long long int __ll) noexcept (true) __attribute__ ((__const__)); extern int strcasecmp (const char *__s1, const char *__s2) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strcasecmp_l (const char *__s1, const char *__s2, locale_t __loc) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); extern int strncasecmp_l (const char *__s1, const char *__s2, size_t __n, locale_t __loc) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); } # 1 "/usr/include/x86_64-linux-gnu/bits/strings_fortified.h" 1 3 4 # 22 "/usr/include/x86_64-linux-gnu/bits/strings_fortified.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void __attribute__ ((__leaf__)) bcopy (const void *__src, void *__dest, size_t __len) noexcept (true) { (void) __builtin___memmove_chk (__dest, __src, __len, __builtin_dynamic_object_size (__dest, 0)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void __attribute__ ((__leaf__)) bzero (void *__dest, size_t __len) noexcept (true) { (void) __builtin___memset_chk (__dest, '\0', __len, __builtin_dynamic_object_size (__dest, 0)); } # 145 "/usr/include/strings.h" 2 3 4 # 495 "/usr/include/string.h" 2 3 4 extern void explicit_bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) ; extern char *strsep (char **__restrict __stringp, const char *__restrict __delim) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern char *strsignal (int __sig) noexcept (true); extern const char *sigabbrev_np (int __sig) noexcept (true); extern const char *sigdescr_np (int __sig) noexcept (true); extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern char *__stpncpy (char *__restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern char *stpncpy (char *__restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern size_t strlcpy (char *__restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 3))); extern size_t strlcat (char *__restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__read_write__, 1, 3))); extern int strverscmp (const char *__s1, const char *__s2) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strfry (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); extern void *memfrob (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__read_write__, 1, 2))); extern "C++" char *basename (char *__filename) noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); extern "C++" const char *basename (const char *__filename) noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); # 580 "/usr/include/string.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/string_fortified.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/bits/string_fortified.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * __attribute__ ((__leaf__)) memcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) { return __builtin___memcpy_chk (__dest, __src, __len, __builtin_dynamic_object_size (__dest, 0)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * __attribute__ ((__leaf__)) memmove (void *__dest, const void *__src, size_t __len) noexcept (true) { return __builtin___memmove_chk (__dest, __src, __len, __builtin_dynamic_object_size (__dest, 0)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * __attribute__ ((__leaf__)) mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) { return __builtin___mempcpy_chk (__dest, __src, __len, __builtin_dynamic_object_size (__dest, 0)); } # 56 "/usr/include/x86_64-linux-gnu/bits/string_fortified.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * __attribute__ ((__leaf__)) memset (void *__dest, int __ch, size_t __len) noexcept (true) { return __builtin___memset_chk (__dest, __ch, __len, __builtin_dynamic_object_size (__dest, 0)); } void *__memset_explicit_chk (void *__s, int __c, size_t __n, size_t __destlen) noexcept (true) __attribute__ ((__nonnull__ (1))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * __attribute__ ((__leaf__)) memset_explicit (void *__dest, int __ch, size_t __len) noexcept (true) { return __memset_explicit_chk (__dest, __ch, __len, __builtin_dynamic_object_size (__dest, 0)); } void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen) noexcept (true) __attribute__ ((__nonnull__ (1))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void __attribute__ ((__leaf__)) explicit_bzero (void *__dest, size_t __len) noexcept (true) { __explicit_bzero_chk (__dest, __len, __builtin_dynamic_object_size (__dest, 0)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__leaf__)) strcpy (char * __restrict __dest, const char *__restrict __src) noexcept (true) { return __builtin___strcpy_chk (__dest, __src, __builtin_dynamic_object_size (__dest, 1)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__leaf__)) stpcpy (char * __restrict __dest, const char *__restrict __src) noexcept (true) { return __builtin___stpcpy_chk (__dest, __src, __builtin_dynamic_object_size (__dest, 1)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__leaf__)) strncpy (char * __restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) { return __builtin___strncpy_chk (__dest, __src, __len, __builtin_dynamic_object_size (__dest, 1)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__leaf__)) stpncpy (char * __dest, const char *__src, size_t __n) noexcept (true) { return __builtin___stpncpy_chk (__dest, __src, __n, __builtin_dynamic_object_size (__dest, 1)); } # 147 "/usr/include/x86_64-linux-gnu/bits/string_fortified.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__leaf__)) strcat (char * __restrict __dest, const char *__restrict __src) noexcept (true) { return __builtin___strcat_chk (__dest, __src, __builtin_dynamic_object_size (__dest, 1)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__leaf__)) strncat (char * __restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) { return __builtin___strncat_chk (__dest, __src, __len, __builtin_dynamic_object_size (__dest, 1)); } extern size_t __strlcpy_chk (char *__dest, const char *__src, size_t __n, size_t __destlen) noexcept (true); extern size_t __strlcpy_alias (char *__dest, const char *__src, size_t __n) noexcept (true) __asm__ ("" "strlcpy") ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) strlcpy (char * __restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) { if (__builtin_dynamic_object_size (__dest, 1) != (size_t) -1 && (!__builtin_constant_p (__n > __builtin_dynamic_object_size (__dest, 1)) || __n > __builtin_dynamic_object_size (__dest, 1))) return __strlcpy_chk (__dest, __src, __n, __builtin_dynamic_object_size (__dest, 1)); return __strlcpy_alias (__dest, __src, __n); } extern size_t __strlcat_chk (char *__dest, const char *__src, size_t __n, size_t __destlen) noexcept (true); extern size_t __strlcat_alias (char *__dest, const char *__src, size_t __n) noexcept (true) __asm__ ("" "strlcat") ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) strlcat (char * __restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) { if (__builtin_dynamic_object_size (__dest, 1) != (size_t) -1 && (!__builtin_constant_p (__n > __builtin_dynamic_object_size (__dest, 1)) || __n > __builtin_dynamic_object_size (__dest, 1))) return __strlcat_chk (__dest, __src, __n, __builtin_dynamic_object_size (__dest, 1)); return __strlcat_alias (__dest, __src, __n); } # 581 "/usr/include/string.h" 2 3 4 } # 49 "/usr/include/c++/15/cstring" 2 3 # 74 "/usr/include/c++/15/cstring" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { using ::memchr; using ::memcmp; using ::memcpy; using ::memmove; using ::memset; using ::strcat; using ::strcmp; using ::strcoll; using ::strcpy; using ::strcspn; using ::strerror; using ::strlen; using ::strncat; using ::strncmp; using ::strncpy; using ::strspn; using ::strtok; using ::strxfrm; using ::strchr; using ::strpbrk; using ::strrchr; using ::strstr; # 127 "/usr/include/c++/15/cstring" 3 } } # 0 "" 2 # 1 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/Sources/System/Panic.cc" # 1 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/Includes/atom/Panic.hh" 1 # 1 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/Includes/atom/Base.hh" 1 # 1 "/usr/include/c++/15/cstddef" 1 3 # 52 "/usr/include/c++/15/cstddef" 3 # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h" 1 3 4 # 160 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h" 3 4 typedef long int ptrdiff_t; # 440 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h" 3 4 typedef struct { long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); # 451 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h" 3 4 } max_align_t; typedef decltype(nullptr) nullptr_t; # 53 "/usr/include/c++/15/cstddef" 2 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 56 "/usr/include/c++/15/cstddef" 2 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" extern "C++" { namespace std { using ::max_align_t; } namespace std { enum class byte : unsigned char {}; template struct __byte_operand { }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; template<> struct __byte_operand<__int128> { using __type = byte; }; template<> struct __byte_operand { using __type = byte; }; # 114 "/usr/include/c++/15/cstddef" 3 template struct __byte_operand : __byte_operand<_IntegerType> { }; template struct __byte_operand : __byte_operand<_IntegerType> { }; template struct __byte_operand : __byte_operand<_IntegerType> { }; template using __byte_op_t = typename __byte_operand<_IntegerType>::__type; template [[__gnu__::__always_inline__]] constexpr __byte_op_t<_IntegerType> operator<<(byte __b, _IntegerType __shift) noexcept { return (byte)(unsigned char)((unsigned)__b << __shift); } template [[__gnu__::__always_inline__]] constexpr __byte_op_t<_IntegerType> operator>>(byte __b, _IntegerType __shift) noexcept { return (byte)(unsigned char)((unsigned)__b >> __shift); } [[__gnu__::__always_inline__]] constexpr byte operator|(byte __l, byte __r) noexcept { return (byte)(unsigned char)((unsigned)__l | (unsigned)__r); } [[__gnu__::__always_inline__]] constexpr byte operator&(byte __l, byte __r) noexcept { return (byte)(unsigned char)((unsigned)__l & (unsigned)__r); } [[__gnu__::__always_inline__]] constexpr byte operator^(byte __l, byte __r) noexcept { return (byte)(unsigned char)((unsigned)__l ^ (unsigned)__r); } [[__gnu__::__always_inline__]] constexpr byte operator~(byte __b) noexcept { return (byte)(unsigned char)~(unsigned)__b; } template [[__gnu__::__always_inline__]] constexpr __byte_op_t<_IntegerType>& operator<<=(byte& __b, _IntegerType __shift) noexcept { return __b = __b << __shift; } template [[__gnu__::__always_inline__]] constexpr __byte_op_t<_IntegerType>& operator>>=(byte& __b, _IntegerType __shift) noexcept { return __b = __b >> __shift; } [[__gnu__::__always_inline__]] constexpr byte& operator|=(byte& __l, byte __r) noexcept { return __l = __l | __r; } [[__gnu__::__always_inline__]] constexpr byte& operator&=(byte& __l, byte __r) noexcept { return __l = __l & __r; } [[__gnu__::__always_inline__]] constexpr byte& operator^=(byte& __l, byte __r) noexcept { return __l = __l ^ __r; } template [[nodiscard,__gnu__::__always_inline__]] constexpr _IntegerType to_integer(__byte_op_t<_IntegerType> __b) noexcept { return _IntegerType(__b); } } } #pragma GCC diagnostic pop # 7 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/Includes/atom/Base.hh" 2 # 1 "/usr/include/c++/15/cstdint" 1 3 # 47 "/usr/include/c++/15/cstdint" 3 # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stdint.h" 1 3 4 # 9 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stdint.h" 3 4 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" # 1 "/usr/include/stdint.h" 1 3 4 # 26 "/usr/include/stdint.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4 # 27 "/usr/include/stdint.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 28 "/usr/include/x86_64-linux-gnu/bits/types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/timesize.h" 1 3 4 # 19 "/usr/include/x86_64-linux-gnu/bits/timesize.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 20 "/usr/include/x86_64-linux-gnu/bits/timesize.h" 2 3 4 # 29 "/usr/include/x86_64-linux-gnu/bits/types.h" 2 3 4 typedef unsigned char __u_char; typedef unsigned short int __u_short; typedef unsigned int __u_int; typedef unsigned long int __u_long; typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef signed short int __int16_t; typedef unsigned short int __uint16_t; typedef signed int __int32_t; typedef unsigned int __uint32_t; typedef signed long int __int64_t; typedef unsigned long int __uint64_t; typedef __int8_t __int_least8_t; typedef __uint8_t __uint_least8_t; typedef __int16_t __int_least16_t; typedef __uint16_t __uint_least16_t; typedef __int32_t __int_least32_t; typedef __uint32_t __uint_least32_t; typedef __int64_t __int_least64_t; typedef __uint64_t __uint_least64_t; typedef long int __quad_t; typedef unsigned long int __u_quad_t; typedef long int __intmax_t; typedef unsigned long int __uintmax_t; # 141 "/usr/include/x86_64-linux-gnu/bits/types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/typesizes.h" 1 3 4 # 142 "/usr/include/x86_64-linux-gnu/bits/types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/time64.h" 1 3 4 # 143 "/usr/include/x86_64-linux-gnu/bits/types.h" 2 3 4 typedef unsigned long int __dev_t; typedef unsigned int __uid_t; typedef unsigned int __gid_t; typedef unsigned long int __ino_t; typedef unsigned long int __ino64_t; typedef unsigned int __mode_t; typedef unsigned long int __nlink_t; typedef long int __off_t; typedef long int __off64_t; typedef int __pid_t; typedef struct { int __val[2]; } __fsid_t; typedef long int __clock_t; typedef unsigned long int __rlim_t; typedef unsigned long int __rlim64_t; typedef unsigned int __id_t; typedef long int __time_t; typedef unsigned int __useconds_t; typedef long int __suseconds_t; typedef long int __suseconds64_t; typedef int __daddr_t; typedef int __key_t; typedef int __clockid_t; typedef void * __timer_t; typedef long int __blksize_t; typedef long int __blkcnt_t; typedef long int __blkcnt64_t; typedef unsigned long int __fsblkcnt_t; typedef unsigned long int __fsblkcnt64_t; typedef unsigned long int __fsfilcnt_t; typedef unsigned long int __fsfilcnt64_t; typedef long int __fsword_t; typedef long int __ssize_t; typedef long int __syscall_slong_t; typedef unsigned long int __syscall_ulong_t; typedef __off64_t __loff_t; typedef char *__caddr_t; typedef long int __intptr_t; typedef unsigned int __socklen_t; typedef int __sig_atomic_t; # 28 "/usr/include/stdint.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wchar.h" 1 3 4 # 29 "/usr/include/stdint.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 30 "/usr/include/stdint.h" 2 3 4 # 38 "/usr/include/stdint.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/stdint-intn.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/stdint-intn.h" 3 4 typedef __int8_t int8_t; typedef __int16_t int16_t; typedef __int32_t int32_t; typedef __int64_t int64_t; # 39 "/usr/include/stdint.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h" 3 4 typedef __uint8_t uint8_t; typedef __uint16_t uint16_t; typedef __uint32_t uint32_t; typedef __uint64_t uint64_t; # 42 "/usr/include/stdint.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/stdint-least.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/bits/stdint-least.h" 3 4 typedef __int_least8_t int_least8_t; typedef __int_least16_t int_least16_t; typedef __int_least32_t int_least32_t; typedef __int_least64_t int_least64_t; typedef __uint_least8_t uint_least8_t; typedef __uint_least16_t uint_least16_t; typedef __uint_least32_t uint_least32_t; typedef __uint_least64_t uint_least64_t; # 46 "/usr/include/stdint.h" 2 3 4 typedef signed char int_fast8_t; typedef long int int_fast16_t; typedef long int int_fast32_t; typedef long int int_fast64_t; # 64 "/usr/include/stdint.h" 3 4 typedef unsigned char uint_fast8_t; typedef unsigned long int uint_fast16_t; typedef unsigned long int uint_fast32_t; typedef unsigned long int uint_fast64_t; # 80 "/usr/include/stdint.h" 3 4 typedef long int intptr_t; typedef unsigned long int uintptr_t; # 94 "/usr/include/stdint.h" 3 4 typedef __intmax_t intmax_t; typedef __uintmax_t uintmax_t; # 12 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stdint.h" 2 3 4 #pragma GCC diagnostic pop # 48 "/usr/include/c++/15/cstdint" 2 3 namespace std { using ::int8_t; using ::int16_t; using ::int32_t; using ::int64_t; using ::int_fast8_t; using ::int_fast16_t; using ::int_fast32_t; using ::int_fast64_t; using ::int_least8_t; using ::int_least16_t; using ::int_least32_t; using ::int_least64_t; using ::intmax_t; using ::intptr_t; using ::uint8_t; using ::uint16_t; using ::uint32_t; using ::uint64_t; using ::uint_fast8_t; using ::uint_fast16_t; using ::uint_fast32_t; using ::uint_fast64_t; using ::uint_least8_t; using ::uint_least16_t; using ::uint_least32_t; using ::uint_least64_t; using ::uintmax_t; using ::uintptr_t; # 144 "/usr/include/c++/15/cstdint" 3 } # 8 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/Includes/atom/Base.hh" 2 # 1 "/usr/include/c++/15/limits" 1 3 # 44 "/usr/include/c++/15/limits" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" #pragma GCC diagnostic ignored "-Wlong-long" #pragma GCC diagnostic ignored "-Wc++23-extensions" # 165 "/usr/include/c++/15/limits" 3 namespace std __attribute__ ((__visibility__ ("default"))) { enum float_round_style { round_indeterminate = -1, round_toward_zero = 0, round_to_nearest = 1, round_toward_infinity = 2, round_toward_neg_infinity = 3 }; enum float_denorm_style { denorm_indeterminate = -1, denorm_absent = 0, denorm_present = 1 }; # 209 "/usr/include/c++/15/limits" 3 struct __numeric_limits_base { static constexpr bool is_specialized = false; static constexpr int digits = 0; static constexpr int digits10 = 0; static constexpr int max_digits10 = 0; static constexpr bool is_signed = false; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 0; static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr bool is_iec559 = false; static constexpr bool is_bounded = false; # 295 "/usr/include/c++/15/limits" 3 static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; # 318 "/usr/include/c++/15/limits" 3 template struct numeric_limits : public __numeric_limits_base { static constexpr _Tp min() noexcept { return _Tp(); } static constexpr _Tp max() noexcept { return _Tp(); } static constexpr _Tp lowest() noexcept { return _Tp(); } static constexpr _Tp epsilon() noexcept { return _Tp(); } static constexpr _Tp round_error() noexcept { return _Tp(); } static constexpr _Tp infinity() noexcept { return _Tp(); } static constexpr _Tp quiet_NaN() noexcept { return _Tp(); } static constexpr _Tp signaling_NaN() noexcept { return _Tp(); } static constexpr _Tp denorm_min() noexcept { return _Tp(); } }; template struct numeric_limits : public numeric_limits<_Tp> { }; template struct numeric_limits : public numeric_limits<_Tp> { }; template struct numeric_limits : public numeric_limits<_Tp> { }; # 390 "/usr/include/c++/15/limits" 3 template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr bool min() noexcept { return false; } static constexpr bool max() noexcept { return true; } static constexpr bool lowest() noexcept { return min(); } static constexpr int digits = 1; static constexpr int digits10 = 0; static constexpr int max_digits10 = 0; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr bool epsilon() noexcept { return false; } static constexpr bool round_error() noexcept { return false; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr bool infinity() noexcept { return false; } static constexpr bool quiet_NaN() noexcept { return false; } static constexpr bool signaling_NaN() noexcept { return false; } static constexpr bool denorm_min() noexcept { return false; } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr char min() noexcept { return (((char)(-1) < 0) ? -(((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0) - 1 : (char)0); } static constexpr char max() noexcept { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } static constexpr char lowest() noexcept { return min(); } static constexpr int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); static constexpr int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = ((char)(-1) < 0); static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr char epsilon() noexcept { return 0; } static constexpr char round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr char infinity() noexcept { return char(); } static constexpr char quiet_NaN() noexcept { return char(); } static constexpr char signaling_NaN() noexcept { return char(); } static constexpr char denorm_min() noexcept { return static_cast(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = !is_signed; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr signed char min() noexcept { return -0x7f - 1; } static constexpr signed char max() noexcept { return 0x7f; } static constexpr signed char lowest() noexcept { return min(); } static constexpr int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); static constexpr int digits10 = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = true; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr signed char epsilon() noexcept { return 0; } static constexpr signed char round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr signed char infinity() noexcept { return static_cast(0); } static constexpr signed char quiet_NaN() noexcept { return static_cast(0); } static constexpr signed char signaling_NaN() noexcept { return static_cast(0); } static constexpr signed char denorm_min() noexcept { return static_cast(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr unsigned char min() noexcept { return 0; } static constexpr unsigned char max() noexcept { return 0x7f * 2U + 1; } static constexpr unsigned char lowest() noexcept { return min(); } static constexpr int digits = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); static constexpr int digits10 = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr unsigned char epsilon() noexcept { return 0; } static constexpr unsigned char round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr unsigned char infinity() noexcept { return static_cast(0); } static constexpr unsigned char quiet_NaN() noexcept { return static_cast(0); } static constexpr unsigned char signaling_NaN() noexcept { return static_cast(0); } static constexpr unsigned char denorm_min() noexcept { return static_cast(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = true; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr wchar_t min() noexcept { return (((wchar_t)(-1) < 0) ? -(((wchar_t)(-1) < 0) ? (((((wchar_t)1 << ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(wchar_t)0) - 1 : (wchar_t)0); } static constexpr wchar_t max() noexcept { return (((wchar_t)(-1) < 0) ? (((((wchar_t)1 << ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(wchar_t)0); } static constexpr wchar_t lowest() noexcept { return min(); } static constexpr int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); static constexpr int digits10 = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = ((wchar_t)(-1) < 0); static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr wchar_t epsilon() noexcept { return 0; } static constexpr wchar_t round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr wchar_t infinity() noexcept { return wchar_t(); } static constexpr wchar_t quiet_NaN() noexcept { return wchar_t(); } static constexpr wchar_t signaling_NaN() noexcept { return wchar_t(); } static constexpr wchar_t denorm_min() noexcept { return wchar_t(); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = !is_signed; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr char8_t min() noexcept { return (((char8_t)(-1) < 0) ? -(((char8_t)(-1) < 0) ? (((((char8_t)1 << ((sizeof(char8_t) * 8 - ((char8_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char8_t)0) - 1 : (char8_t)0); } static constexpr char8_t max() noexcept { return (((char8_t)(-1) < 0) ? (((((char8_t)1 << ((sizeof(char8_t) * 8 - ((char8_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char8_t)0); } static constexpr char8_t lowest() noexcept { return min(); } static constexpr int digits = (sizeof(char8_t) * 8 - ((char8_t)(-1) < 0)); static constexpr int digits10 = ((sizeof(char8_t) * 8 - ((char8_t)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = ((char8_t)(-1) < 0); static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr char8_t epsilon() noexcept { return 0; } static constexpr char8_t round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr char8_t infinity() noexcept { return char8_t(); } static constexpr char8_t quiet_NaN() noexcept { return char8_t(); } static constexpr char8_t signaling_NaN() noexcept { return char8_t(); } static constexpr char8_t denorm_min() noexcept { return char8_t(); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = !is_signed; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr char16_t min() noexcept { return (((char16_t)(-1) < 0) ? -(((char16_t)(-1) < 0) ? (((((char16_t)1 << ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char16_t)0) - 1 : (char16_t)0); } static constexpr char16_t max() noexcept { return (((char16_t)(-1) < 0) ? (((((char16_t)1 << ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char16_t)0); } static constexpr char16_t lowest() noexcept { return min(); } static constexpr int digits = (sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)); static constexpr int digits10 = ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = ((char16_t)(-1) < 0); static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr char16_t epsilon() noexcept { return 0; } static constexpr char16_t round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr char16_t infinity() noexcept { return char16_t(); } static constexpr char16_t quiet_NaN() noexcept { return char16_t(); } static constexpr char16_t signaling_NaN() noexcept { return char16_t(); } static constexpr char16_t denorm_min() noexcept { return char16_t(); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = !is_signed; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr char32_t min() noexcept { return (((char32_t)(-1) < 0) ? -(((char32_t)(-1) < 0) ? (((((char32_t)1 << ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char32_t)0) - 1 : (char32_t)0); } static constexpr char32_t max() noexcept { return (((char32_t)(-1) < 0) ? (((((char32_t)1 << ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char32_t)0); } static constexpr char32_t lowest() noexcept { return min(); } static constexpr int digits = (sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)); static constexpr int digits10 = ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = ((char32_t)(-1) < 0); static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr char32_t epsilon() noexcept { return 0; } static constexpr char32_t round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr char32_t infinity() noexcept { return char32_t(); } static constexpr char32_t quiet_NaN() noexcept { return char32_t(); } static constexpr char32_t signaling_NaN() noexcept { return char32_t(); } static constexpr char32_t denorm_min() noexcept { return char32_t(); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = !is_signed; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr short min() noexcept { return -0x7fff - 1; } static constexpr short max() noexcept { return 0x7fff; } static constexpr short lowest() noexcept { return min(); } static constexpr int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); static constexpr int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = true; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr short epsilon() noexcept { return 0; } static constexpr short round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr short infinity() noexcept { return short(); } static constexpr short quiet_NaN() noexcept { return short(); } static constexpr short signaling_NaN() noexcept { return short(); } static constexpr short denorm_min() noexcept { return short(); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr unsigned short min() noexcept { return 0; } static constexpr unsigned short max() noexcept { return 0x7fff * 2U + 1; } static constexpr unsigned short lowest() noexcept { return min(); } static constexpr int digits = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); static constexpr int digits10 = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr unsigned short epsilon() noexcept { return 0; } static constexpr unsigned short round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr unsigned short infinity() noexcept { return static_cast(0); } static constexpr unsigned short quiet_NaN() noexcept { return static_cast(0); } static constexpr unsigned short signaling_NaN() noexcept { return static_cast(0); } static constexpr unsigned short denorm_min() noexcept { return static_cast(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = true; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr int min() noexcept { return -0x7fffffff - 1; } static constexpr int max() noexcept { return 0x7fffffff; } static constexpr int lowest() noexcept { return min(); } static constexpr int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); static constexpr int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = true; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr int epsilon() noexcept { return 0; } static constexpr int round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr int infinity() noexcept { return static_cast(0); } static constexpr int quiet_NaN() noexcept { return static_cast(0); } static constexpr int signaling_NaN() noexcept { return static_cast(0); } static constexpr int denorm_min() noexcept { return static_cast(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr unsigned int min() noexcept { return 0; } static constexpr unsigned int max() noexcept { return 0x7fffffff * 2U + 1; } static constexpr unsigned int lowest() noexcept { return min(); } static constexpr int digits = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); static constexpr int digits10 = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr unsigned int epsilon() noexcept { return 0; } static constexpr unsigned int round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr unsigned int infinity() noexcept { return static_cast(0); } static constexpr unsigned int quiet_NaN() noexcept { return static_cast(0); } static constexpr unsigned int signaling_NaN() noexcept { return static_cast(0); } static constexpr unsigned int denorm_min() noexcept { return static_cast(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = true; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr long min() noexcept { return -0x7fffffffffffffffL - 1; } static constexpr long max() noexcept { return 0x7fffffffffffffffL; } static constexpr long lowest() noexcept { return min(); } static constexpr int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); static constexpr int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = true; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr long epsilon() noexcept { return 0; } static constexpr long round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr long infinity() noexcept { return static_cast(0); } static constexpr long quiet_NaN() noexcept { return static_cast(0); } static constexpr long signaling_NaN() noexcept { return static_cast(0); } static constexpr long denorm_min() noexcept { return static_cast(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr unsigned long min() noexcept { return 0; } static constexpr unsigned long max() noexcept { return 0x7fffffffffffffffL * 2UL + 1; } static constexpr unsigned long lowest() noexcept { return min(); } static constexpr int digits = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); static constexpr int digits10 = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr unsigned long epsilon() noexcept { return 0; } static constexpr unsigned long round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr unsigned long infinity() noexcept { return static_cast(0); } static constexpr unsigned long quiet_NaN() noexcept { return static_cast(0); } static constexpr unsigned long signaling_NaN() noexcept { return static_cast(0); } static constexpr unsigned long denorm_min() noexcept { return static_cast(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = true; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr long long min() noexcept { return -0x7fffffffffffffffLL - 1; } static constexpr long long max() noexcept { return 0x7fffffffffffffffLL; } static constexpr long long lowest() noexcept { return min(); } static constexpr int digits = (sizeof(long long) * 8 - ((long long)(-1) < 0)); static constexpr int digits10 = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = true; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr long long epsilon() noexcept { return 0; } static constexpr long long round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr long long infinity() noexcept { return static_cast(0); } static constexpr long long quiet_NaN() noexcept { return static_cast(0); } static constexpr long long signaling_NaN() noexcept { return static_cast(0); } static constexpr long long denorm_min() noexcept { return static_cast(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr unsigned long long min() noexcept { return 0; } static constexpr unsigned long long max() noexcept { return 0x7fffffffffffffffLL * 2ULL + 1; } static constexpr unsigned long long lowest() noexcept { return min(); } static constexpr int digits = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); static constexpr int digits10 = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr unsigned long long epsilon() noexcept { return 0; } static constexpr unsigned long long round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr unsigned long long infinity() noexcept { return static_cast(0); } static constexpr unsigned long long quiet_NaN() noexcept { return static_cast(0); } static constexpr unsigned long long signaling_NaN() noexcept { return static_cast(0); } static constexpr unsigned long long denorm_min() noexcept { return static_cast(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = true; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; # 1644 "/usr/include/c++/15/limits" 3 __extension__ template<> struct numeric_limits<__int128> { static constexpr bool is_specialized = true; static constexpr __int128 min() noexcept { return (((__int128)(-1) < 0) ? -(((__int128)(-1) < 0) ? (((((__int128)1 << ((128 - ((__int128)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(__int128)0) - 1 : (__int128)0); } static constexpr __int128 max() noexcept { return (((__int128)(-1) < 0) ? (((((__int128)1 << ((128 - ((__int128)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(__int128)0); } static constexpr int digits = 128 - 1; static constexpr int digits10 = (128 - 1) * 643L / 2136; static constexpr bool is_signed = true; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr __int128 epsilon() noexcept { return 0; } static constexpr __int128 round_error() noexcept { return 0; } static constexpr __int128 lowest() noexcept { return min(); } static constexpr int max_digits10 = 0; static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr __int128 infinity() noexcept { return static_cast<__int128>(0); } static constexpr __int128 quiet_NaN() noexcept { return static_cast<__int128>(0); } static constexpr __int128 signaling_NaN() noexcept { return static_cast<__int128>(0); } static constexpr __int128 denorm_min() noexcept { return static_cast<__int128>(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; __extension__ template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr unsigned __int128 min() noexcept { return 0; } static constexpr unsigned __int128 max() noexcept { return (((unsigned __int128)(-1) < 0) ? (((((unsigned __int128)1 << ((128 - ((unsigned __int128)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(unsigned __int128)0); } static constexpr unsigned __int128 lowest() noexcept { return min(); } static constexpr int max_digits10 = 0; static constexpr int digits = 128; static constexpr int digits10 = 128 * 643L / 2136; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr unsigned __int128 epsilon() noexcept { return 0; } static constexpr unsigned __int128 round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr unsigned __int128 infinity() noexcept { return static_cast(0); } static constexpr unsigned __int128 quiet_NaN() noexcept { return static_cast(0); } static constexpr unsigned __int128 signaling_NaN() noexcept { return static_cast(0); } static constexpr unsigned __int128 denorm_min() noexcept { return static_cast(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = true; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; # 1676 "/usr/include/c++/15/limits" 3 template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr float min() noexcept { return 1.17549435082228750796873653722224568e-38F; } static constexpr float max() noexcept { return 3.40282346638528859811704183484516925e+38F; } static constexpr float lowest() noexcept { return -3.40282346638528859811704183484516925e+38F; } static constexpr int digits = 24; static constexpr int digits10 = 6; static constexpr int max_digits10 = (2 + (24) * 643L / 2136); static constexpr bool is_signed = true; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 2; static constexpr float epsilon() noexcept { return 1.19209289550781250000000000000000000e-7F; } static constexpr float round_error() noexcept { return 0.5F; } static constexpr int min_exponent = (-125); static constexpr int min_exponent10 = (-37); static constexpr int max_exponent = 128; static constexpr int max_exponent10 = 38; static constexpr bool has_infinity = 1; static constexpr bool has_quiet_NaN = 1; static constexpr bool has_signaling_NaN = has_quiet_NaN; static constexpr float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr float infinity() noexcept { return __builtin_huge_valf(); } static constexpr float quiet_NaN() noexcept { return __builtin_nanf(""); } static constexpr float signaling_NaN() noexcept { return __builtin_nansf(""); } static constexpr float denorm_min() noexcept { return 1.40129846432481707092372958328991613e-45F; } static constexpr bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_to_nearest; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr double min() noexcept { return double(2.22507385850720138309023271733240406e-308L); } static constexpr double max() noexcept { return double(1.79769313486231570814527423731704357e+308L); } static constexpr double lowest() noexcept { return -double(1.79769313486231570814527423731704357e+308L); } static constexpr int digits = 53; static constexpr int digits10 = 15; static constexpr int max_digits10 = (2 + (53) * 643L / 2136); static constexpr bool is_signed = true; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 2; static constexpr double epsilon() noexcept { return double(2.22044604925031308084726333618164062e-16L); } static constexpr double round_error() noexcept { return 0.5; } static constexpr int min_exponent = (-1021); static constexpr int min_exponent10 = (-307); static constexpr int max_exponent = 1024; static constexpr int max_exponent10 = 308; static constexpr bool has_infinity = 1; static constexpr bool has_quiet_NaN = 1; static constexpr bool has_signaling_NaN = has_quiet_NaN; static constexpr float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr double infinity() noexcept { return __builtin_huge_val(); } static constexpr double quiet_NaN() noexcept { return __builtin_nan(""); } static constexpr double signaling_NaN() noexcept { return __builtin_nans(""); } static constexpr double denorm_min() noexcept { return double(4.94065645841246544176568792868221372e-324L); } static constexpr bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_to_nearest; }; template<> struct numeric_limits { static constexpr bool is_specialized = true; static constexpr long double min() noexcept { return 3.36210314311209350626267781732175260e-4932L; } static constexpr long double max() noexcept { return 1.18973149535723176502126385303097021e+4932L; } static constexpr long double lowest() noexcept { return -1.18973149535723176502126385303097021e+4932L; } static constexpr int digits = 64; static constexpr int digits10 = 18; static constexpr int max_digits10 = (2 + (64) * 643L / 2136); static constexpr bool is_signed = true; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 2; static constexpr long double epsilon() noexcept { return 1.08420217248550443400745280086994171e-19L; } static constexpr long double round_error() noexcept { return 0.5L; } static constexpr int min_exponent = (-16381); static constexpr int min_exponent10 = (-4931); static constexpr int max_exponent = 16384; static constexpr int max_exponent10 = 4932; static constexpr bool has_infinity = 1; static constexpr bool has_quiet_NaN = 1; static constexpr bool has_signaling_NaN = has_quiet_NaN; static constexpr float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr long double infinity() noexcept { return __builtin_huge_vall(); } static constexpr long double quiet_NaN() noexcept { return __builtin_nanl(""); } static constexpr long double signaling_NaN() noexcept { return __builtin_nansl(""); } static constexpr long double denorm_min() noexcept { return 3.64519953188247460252840593361941982e-4951L; } static constexpr bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_to_nearest; }; # 1993 "/usr/include/c++/15/limits" 3 __extension__ template<> struct numeric_limits<_Float16> { static constexpr bool is_specialized = true; static constexpr _Float16 min() noexcept { return 6.10351562500000000000000000000000000e-5F16; } static constexpr _Float16 max() noexcept { return 6.55040000000000000000000000000000000e+4F16; } static constexpr _Float16 lowest() noexcept { return -6.55040000000000000000000000000000000e+4F16; } static constexpr int digits = 11; static constexpr int digits10 = 3; static constexpr int max_digits10 = (2 + (11) * 643L / 2136); static constexpr bool is_signed = true; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 2; static constexpr _Float16 epsilon() noexcept { return 9.76562500000000000000000000000000000e-4F16; } static constexpr _Float16 round_error() noexcept { return 0.5F16; } static constexpr int min_exponent = (-13); static constexpr int min_exponent10 = (-4); static constexpr int max_exponent = 16; static constexpr int max_exponent10 = 4; static constexpr bool has_infinity = 1; static constexpr bool has_quiet_NaN = 1; static constexpr bool has_signaling_NaN = has_quiet_NaN; static constexpr float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr _Float16 infinity() noexcept { return __builtin_huge_valf16(); } static constexpr _Float16 quiet_NaN() noexcept { return __builtin_nanf16(""); } static constexpr _Float16 signaling_NaN() noexcept { return __builtin_nansf16(""); } static constexpr _Float16 denorm_min() noexcept { return 5.96046447753906250000000000000000000e-8F16; } static constexpr bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_to_nearest; }; __extension__ template<> struct numeric_limits<_Float32> { static constexpr bool is_specialized = true; static constexpr _Float32 min() noexcept { return 1.17549435082228750796873653722224568e-38F32; } static constexpr _Float32 max() noexcept { return 3.40282346638528859811704183484516925e+38F32; } static constexpr _Float32 lowest() noexcept { return -3.40282346638528859811704183484516925e+38F32; } static constexpr int digits = 24; static constexpr int digits10 = 6; static constexpr int max_digits10 = (2 + (24) * 643L / 2136); static constexpr bool is_signed = true; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 2; static constexpr _Float32 epsilon() noexcept { return 1.19209289550781250000000000000000000e-7F32; } static constexpr _Float32 round_error() noexcept { return 0.5F32; } static constexpr int min_exponent = (-125); static constexpr int min_exponent10 = (-37); static constexpr int max_exponent = 128; static constexpr int max_exponent10 = 38; static constexpr bool has_infinity = 1; static constexpr bool has_quiet_NaN = 1; static constexpr bool has_signaling_NaN = has_quiet_NaN; static constexpr float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr _Float32 infinity() noexcept { return __builtin_huge_valf32(); } static constexpr _Float32 quiet_NaN() noexcept { return __builtin_nanf32(""); } static constexpr _Float32 signaling_NaN() noexcept { return __builtin_nansf32(""); } static constexpr _Float32 denorm_min() noexcept { return 1.40129846432481707092372958328991613e-45F32; } static constexpr bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_to_nearest; }; __extension__ template<> struct numeric_limits<_Float64> { static constexpr bool is_specialized = true; static constexpr _Float64 min() noexcept { return 2.22507385850720138309023271733240406e-308F64; } static constexpr _Float64 max() noexcept { return 1.79769313486231570814527423731704357e+308F64; } static constexpr _Float64 lowest() noexcept { return -1.79769313486231570814527423731704357e+308F64; } static constexpr int digits = 53; static constexpr int digits10 = 15; static constexpr int max_digits10 = (2 + (53) * 643L / 2136); static constexpr bool is_signed = true; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 2; static constexpr _Float64 epsilon() noexcept { return 2.22044604925031308084726333618164062e-16F64; } static constexpr _Float64 round_error() noexcept { return 0.5F64; } static constexpr int min_exponent = (-1021); static constexpr int min_exponent10 = (-307); static constexpr int max_exponent = 1024; static constexpr int max_exponent10 = 308; static constexpr bool has_infinity = 1; static constexpr bool has_quiet_NaN = 1; static constexpr bool has_signaling_NaN = has_quiet_NaN; static constexpr float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr _Float64 infinity() noexcept { return __builtin_huge_valf64(); } static constexpr _Float64 quiet_NaN() noexcept { return __builtin_nanf64(""); } static constexpr _Float64 signaling_NaN() noexcept { return __builtin_nansf64(""); } static constexpr _Float64 denorm_min() noexcept { return 4.94065645841246544176568792868221372e-324F64; } static constexpr bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_to_nearest; }; __extension__ template<> struct numeric_limits<_Float128> { static constexpr bool is_specialized = true; static constexpr _Float128 min() noexcept { return 3.36210314311209350626267781732175260e-4932F128; } static constexpr _Float128 max() noexcept { return 1.18973149535723176508575932662800702e+4932F128; } static constexpr _Float128 lowest() noexcept { return -1.18973149535723176508575932662800702e+4932F128; } static constexpr int digits = 113; static constexpr int digits10 = 33; static constexpr int max_digits10 = (2 + (113) * 643L / 2136); static constexpr bool is_signed = true; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 2; static constexpr _Float128 epsilon() noexcept { return 1.92592994438723585305597794258492732e-34F128; } static constexpr _Float128 round_error() noexcept { return 0.5F128; } static constexpr int min_exponent = (-16381); static constexpr int min_exponent10 = (-4931); static constexpr int max_exponent = 16384; static constexpr int max_exponent10 = 4932; static constexpr bool has_infinity = 1; static constexpr bool has_quiet_NaN = 1; static constexpr bool has_signaling_NaN = has_quiet_NaN; static constexpr float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr _Float128 infinity() noexcept { return __builtin_huge_valf128(); } static constexpr _Float128 quiet_NaN() noexcept { return __builtin_nanf128(""); } static constexpr _Float128 signaling_NaN() noexcept { return __builtin_nansf128(""); } static constexpr _Float128 denorm_min() noexcept { return 6.47517511943802511092443895822764655e-4966F128; } static constexpr bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_to_nearest; }; # 2013 "/usr/include/c++/15/limits" 3 __extension__ template<> struct numeric_limits<__gnu_cxx::__bfloat16_t> { static constexpr bool is_specialized = true; static constexpr __gnu_cxx::__bfloat16_t min() noexcept { return 1.17549435082228750796873653722224568e-38BF16; } static constexpr __gnu_cxx::__bfloat16_t max() noexcept { return 3.38953138925153547590470800371487867e+38BF16; } static constexpr __gnu_cxx::__bfloat16_t lowest() noexcept { return -3.38953138925153547590470800371487867e+38BF16; } static constexpr int digits = 8; static constexpr int digits10 = 2; static constexpr int max_digits10 = (2 + (8) * 643L / 2136); static constexpr bool is_signed = true; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 2; static constexpr __gnu_cxx::__bfloat16_t epsilon() noexcept { return 7.81250000000000000000000000000000000e-3BF16; } static constexpr __gnu_cxx::__bfloat16_t round_error() noexcept { return 0.5BF16; } static constexpr int min_exponent = (-125); static constexpr int min_exponent10 = (-37); static constexpr int max_exponent = 128; static constexpr int max_exponent10 = 38; static constexpr bool has_infinity = 1; static constexpr bool has_quiet_NaN = 1; static constexpr bool has_signaling_NaN = has_quiet_NaN; static constexpr float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr __gnu_cxx::__bfloat16_t infinity() noexcept { return __gnu_cxx::__bfloat16_t(__builtin_huge_valf()); } static constexpr __gnu_cxx::__bfloat16_t quiet_NaN() noexcept { return __gnu_cxx::__bfloat16_t(__builtin_nanf("")); } static constexpr __gnu_cxx::__bfloat16_t signaling_NaN() noexcept { return __builtin_nansf16b(""); } static constexpr __gnu_cxx::__bfloat16_t denorm_min() noexcept { return 9.18354961579912115600575419704879436e-41BF16; } static constexpr bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_to_nearest; }; __extension__ template<> struct numeric_limits<__float128> { static constexpr bool is_specialized = true; static constexpr __float128 min() noexcept { return __extension__ 0x1.0p-16382Q; } static constexpr __float128 max() noexcept { return __extension__ 0x1.ffffffffffffffffffffffffffffp+16383Q; } static constexpr __float128 lowest() noexcept { return -max(); } static constexpr int digits = 113; static constexpr int digits10 = 33; static constexpr int max_digits10 = 36; static constexpr bool is_signed = true; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 2; static constexpr __float128 epsilon() noexcept { return double(1.9259299443872359e-34); } static constexpr __float128 round_error() noexcept { return 0.5; } static constexpr int min_exponent = -16381; static constexpr int min_exponent10 = -4931; static constexpr int max_exponent = 16384; static constexpr int max_exponent10 = 4932; static constexpr bool has_infinity = 1; static constexpr bool has_quiet_NaN = 1; static constexpr bool has_signaling_NaN = true; static constexpr float_denorm_style has_denorm = denorm_present; static constexpr bool has_denorm_loss = false; static constexpr __float128 infinity() noexcept { return __builtin_huge_val(); } static constexpr __float128 quiet_NaN() noexcept { return __builtin_nan(""); } static constexpr __float128 signaling_NaN() noexcept { return __builtin_nansq(""); } static constexpr __float128 denorm_min() noexcept { return __extension__ 0x1.0p-16494Q; } static constexpr bool is_iec559 = has_signaling_NaN; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_to_nearest; # 2225 "/usr/include/c++/15/limits" 3 }; } # 2239 "/usr/include/c++/15/limits" 3 #pragma GCC diagnostic pop # 9 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/Includes/atom/Base.hh" 2 # 1 "/usr/include/c++/15/tuple" 1 3 # 40 "/usr/include/c++/15/tuple" 3 # 1 "/usr/include/c++/15/bits/stl_pair.h" 1 3 # 60 "/usr/include/c++/15/bits/stl_pair.h" 3 # 1 "/usr/include/c++/15/type_traits" 1 3 # 67 "/usr/include/c++/15/type_traits" 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 68 "/usr/include/c++/15/type_traits" 2 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { template class reference_wrapper; # 92 "/usr/include/c++/15/type_traits" 3 template struct integral_constant { static constexpr _Tp value = __v; using value_type = _Tp; using type = integral_constant<_Tp, __v>; constexpr operator value_type() const noexcept { return value; } constexpr value_type operator()() const noexcept { return value; } }; # 112 "/usr/include/c++/15/type_traits" 3 template using __bool_constant = integral_constant; using true_type = __bool_constant; using false_type = __bool_constant; template using bool_constant = __bool_constant<__v>; template struct enable_if { }; template struct enable_if { using type = _Tp; }; template using __enable_if_t = typename enable_if<_Cond, _Tp>::type; template struct __conditional { template using type = _Tp; }; template<> struct __conditional { template using type = _Up; }; template using __conditional_t = typename __conditional<_Cond>::template type<_If, _Else>; template struct __type_identity { using type = _Type; }; template using __type_identity_t = typename __type_identity<_Tp>::type; namespace __detail { template using __first_t = _Tp; template auto __or_fn(int) -> __first_t...>; template auto __or_fn(...) -> true_type; template auto __and_fn(int) -> __first_t...>; template auto __and_fn(...) -> false_type; } template struct __or_ : decltype(__detail::__or_fn<_Bn...>(0)) { }; template struct __and_ : decltype(__detail::__and_fn<_Bn...>(0)) { }; template struct __not_ : __bool_constant { }; template inline constexpr bool __or_v = __or_<_Bn...>::value; template inline constexpr bool __and_v = __and_<_Bn...>::value; namespace __detail { template struct __disjunction_impl { using type = _B1; }; template struct __disjunction_impl<__enable_if_t, _B1, _B2, _Bn...> { using type = typename __disjunction_impl::type; }; template struct __conjunction_impl { using type = _B1; }; template struct __conjunction_impl<__enable_if_t, _B1, _B2, _Bn...> { using type = typename __conjunction_impl::type; }; } template struct conjunction : __detail::__conjunction_impl::type { }; template<> struct conjunction<> : true_type { }; template struct disjunction : __detail::__disjunction_impl::type { }; template<> struct disjunction<> : false_type { }; template struct negation : __not_<_Pp>::type { }; template inline constexpr bool conjunction_v = conjunction<_Bn...>::value; template inline constexpr bool disjunction_v = disjunction<_Bn...>::value; template inline constexpr bool negation_v = negation<_Pp>::value; template struct is_reference; template struct is_function; template struct is_void; template struct remove_cv; template struct is_const; template struct __is_array_unknown_bounds; template constexpr true_type __is_complete_or_unbounded(__type_identity<_Tp>) { return {}; } template constexpr typename __or_< is_reference<_NestedType>, is_function<_NestedType>, is_void<_NestedType>, __is_array_unknown_bounds<_NestedType> >::type __is_complete_or_unbounded(_TypeIdentity) { return {}; } template using __remove_cv_t = typename remove_cv<_Tp>::type; template struct is_void : public false_type { }; template<> struct is_void : public true_type { }; template<> struct is_void : public true_type { }; template<> struct is_void : public true_type { }; template<> struct is_void : public true_type { }; template struct __is_integral_helper : public false_type { }; template<> struct __is_integral_helper : public true_type { }; template<> struct __is_integral_helper : public true_type { }; template<> struct __is_integral_helper : public true_type { }; template<> struct __is_integral_helper : public true_type { }; template<> struct __is_integral_helper : public true_type { }; template<> struct __is_integral_helper : public true_type { }; template<> struct __is_integral_helper : public true_type { }; template<> struct __is_integral_helper : public true_type { }; template<> struct __is_integral_helper : public true_type { }; template<> struct __is_integral_helper : public true_type { }; template<> struct __is_integral_helper : public true_type { }; template<> struct __is_integral_helper : public true_type { }; template<> struct __is_integral_helper : public true_type { }; template<> struct __is_integral_helper : public true_type { }; template<> struct __is_integral_helper : public true_type { }; template<> struct __is_integral_helper : public true_type { }; __extension__ template<> struct __is_integral_helper<__int128> : public true_type { }; __extension__ template<> struct __is_integral_helper : public true_type { }; # 466 "/usr/include/c++/15/type_traits" 3 template struct is_integral : public __is_integral_helper<__remove_cv_t<_Tp>>::type { }; template struct __is_floating_point_helper : public false_type { }; template<> struct __is_floating_point_helper : public true_type { }; template<> struct __is_floating_point_helper : public true_type { }; template<> struct __is_floating_point_helper : public true_type { }; template<> struct __is_floating_point_helper<_Float16> : public true_type { }; template<> struct __is_floating_point_helper<_Float32> : public true_type { }; template<> struct __is_floating_point_helper<_Float64> : public true_type { }; template<> struct __is_floating_point_helper<_Float128> : public true_type { }; template<> struct __is_floating_point_helper<__gnu_cxx::__bfloat16_t> : public true_type { }; template<> struct __is_floating_point_helper<__float128> : public true_type { }; template struct is_floating_point : public __is_floating_point_helper<__remove_cv_t<_Tp>>::type { }; template struct is_array : public __bool_constant<__is_array(_Tp)> { }; # 553 "/usr/include/c++/15/type_traits" 3 template struct is_pointer : public __bool_constant<__is_pointer(_Tp)> { }; # 580 "/usr/include/c++/15/type_traits" 3 template struct is_lvalue_reference : public false_type { }; template struct is_lvalue_reference<_Tp&> : public true_type { }; template struct is_rvalue_reference : public false_type { }; template struct is_rvalue_reference<_Tp&&> : public true_type { }; template struct is_member_object_pointer : public __bool_constant<__is_member_object_pointer(_Tp)> { }; # 621 "/usr/include/c++/15/type_traits" 3 template struct is_member_function_pointer : public __bool_constant<__is_member_function_pointer(_Tp)> { }; # 642 "/usr/include/c++/15/type_traits" 3 template struct is_enum : public __bool_constant<__is_enum(_Tp)> { }; template struct is_union : public __bool_constant<__is_union(_Tp)> { }; template struct is_class : public __bool_constant<__is_class(_Tp)> { }; template struct is_function : public __bool_constant<__is_function(_Tp)> { }; # 681 "/usr/include/c++/15/type_traits" 3 template struct is_null_pointer : public false_type { }; template<> struct is_null_pointer : public true_type { }; template<> struct is_null_pointer : public true_type { }; template<> struct is_null_pointer : public true_type { }; template<> struct is_null_pointer : public true_type { }; template struct __is_nullptr_t : public is_null_pointer<_Tp> { } __attribute__ ((__deprecated__ ("use '" "std::is_null_pointer" "' instead"))); template struct is_reference : public __bool_constant<__is_reference(_Tp)> { }; # 735 "/usr/include/c++/15/type_traits" 3 template struct is_arithmetic : public __or_, is_floating_point<_Tp>>::type { }; template struct is_fundamental : public __or_, is_void<_Tp>, is_null_pointer<_Tp>>::type { }; template struct is_object : public __bool_constant<__is_object(_Tp)> { }; # 761 "/usr/include/c++/15/type_traits" 3 template struct is_member_pointer; template struct is_scalar : public __or_, is_enum<_Tp>, is_pointer<_Tp>, is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type { }; template struct is_compound : public __bool_constant::value> { }; template struct is_member_pointer : public __bool_constant<__is_member_pointer(_Tp)> { }; # 799 "/usr/include/c++/15/type_traits" 3 template struct is_same; template using __is_one_of = __or_...>; __extension__ template using __is_signed_integer = __is_one_of<__remove_cv_t<_Tp>, signed char, signed short, signed int, signed long, signed long long , signed __int128 # 824 "/usr/include/c++/15/type_traits" 3 >; __extension__ template using __is_unsigned_integer = __is_one_of<__remove_cv_t<_Tp>, unsigned char, unsigned short, unsigned int, unsigned long, unsigned long long , unsigned __int128 # 844 "/usr/include/c++/15/type_traits" 3 >; template using __is_standard_integer = __or_<__is_signed_integer<_Tp>, __is_unsigned_integer<_Tp>>; template using __void_t = void; template struct is_const : public __bool_constant<__is_const(_Tp)> { }; # 875 "/usr/include/c++/15/type_traits" 3 template struct is_volatile : public __bool_constant<__is_volatile(_Tp)> { }; # 896 "/usr/include/c++/15/type_traits" 3 template struct is_trivial : public __bool_constant<__is_trivial(_Tp)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_trivially_copyable : public __bool_constant<__is_trivially_copyable(_Tp)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_standard_layout : public __bool_constant<__is_standard_layout(_Tp)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct __attribute__ ((__deprecated__ ("use '" "is_standard_layout && is_trivial" "' instead"))) is_pod : public __bool_constant<__is_pod(_Tp)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct [[__deprecated__]] is_literal_type : public __bool_constant<__is_literal_type(_Tp)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_empty : public __bool_constant<__is_empty(_Tp)> { }; template struct is_polymorphic : public __bool_constant<__is_polymorphic(_Tp)> { }; template struct is_final : public __bool_constant<__is_final(_Tp)> { }; template struct is_abstract : public __bool_constant<__is_abstract(_Tp)> { }; template::value> struct __is_signed_helper : public false_type { }; template struct __is_signed_helper<_Tp, true> : public __bool_constant<_Tp(-1) < _Tp(0)> { }; template struct is_signed : public __is_signed_helper<_Tp>::type { }; template struct is_unsigned : public __and_, __not_>>::type { }; template _Up __declval(int); template _Tp __declval(long); template auto declval() noexcept -> decltype(__declval<_Tp>(0)); template struct remove_all_extents; template struct __is_array_known_bounds : public false_type { }; template struct __is_array_known_bounds<_Tp[_Size]> : public true_type { }; template struct __is_array_unknown_bounds : public false_type { }; template struct __is_array_unknown_bounds<_Tp[]> : public true_type { }; # 1048 "/usr/include/c++/15/type_traits" 3 struct __do_is_destructible_impl { template().~_Tp())> static true_type __test(int); template static false_type __test(...); }; template struct __is_destructible_impl : public __do_is_destructible_impl { using type = decltype(__test<_Tp>(0)); }; template, __is_array_unknown_bounds<_Tp>, is_function<_Tp>>::value, bool = __or_, is_scalar<_Tp>>::value> struct __is_destructible_safe; template struct __is_destructible_safe<_Tp, false, false> : public __is_destructible_impl::type>::type { }; template struct __is_destructible_safe<_Tp, true, false> : public false_type { }; template struct __is_destructible_safe<_Tp, false, true> : public true_type { }; template struct is_destructible : public __is_destructible_safe<_Tp>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; struct __do_is_nt_destructible_impl { template static __bool_constant().~_Tp())> __test(int); template static false_type __test(...); }; template struct __is_nt_destructible_impl : public __do_is_nt_destructible_impl { using type = decltype(__test<_Tp>(0)); }; template, __is_array_unknown_bounds<_Tp>, is_function<_Tp>>::value, bool = __or_, is_scalar<_Tp>>::value> struct __is_nt_destructible_safe; template struct __is_nt_destructible_safe<_Tp, false, false> : public __is_nt_destructible_impl::type>::type { }; template struct __is_nt_destructible_safe<_Tp, true, false> : public false_type { }; template struct __is_nt_destructible_safe<_Tp, false, true> : public true_type { }; template struct is_nothrow_destructible : public __is_nt_destructible_safe<_Tp>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template using __is_constructible_impl = __bool_constant<__is_constructible(_Tp, _Args...)>; template struct is_constructible : public __is_constructible_impl<_Tp, _Args...> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_default_constructible : public __is_constructible_impl<_Tp> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template using __add_lval_ref_t = __add_lvalue_reference(_Tp); # 1192 "/usr/include/c++/15/type_traits" 3 template struct is_copy_constructible : public __is_constructible_impl<_Tp, __add_lval_ref_t> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template using __add_rval_ref_t = __add_rvalue_reference(_Tp); # 1219 "/usr/include/c++/15/type_traits" 3 template struct is_move_constructible : public __is_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template using __is_nothrow_constructible_impl = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>; template struct is_nothrow_constructible : public __is_nothrow_constructible_impl<_Tp, _Args...> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_nothrow_default_constructible : public __is_nothrow_constructible_impl<_Tp> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_nothrow_copy_constructible : public __is_nothrow_constructible_impl<_Tp, __add_lval_ref_t> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_nothrow_move_constructible : public __is_nothrow_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template using __is_assignable_impl = __bool_constant<__is_assignable(_Tp, _Up)>; template struct is_assignable : public __is_assignable_impl<_Tp, _Up> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_copy_assignable : public __is_assignable_impl<__add_lval_ref_t<_Tp>, __add_lval_ref_t> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_move_assignable : public __is_assignable_impl<__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template using __is_nothrow_assignable_impl = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>; template struct is_nothrow_assignable : public __is_nothrow_assignable_impl<_Tp, _Up> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_nothrow_copy_assignable : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, __add_lval_ref_t> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_nothrow_move_assignable : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template using __is_trivially_constructible_impl = __bool_constant<__is_trivially_constructible(_Tp, _Args...)>; template struct is_trivially_constructible : public __is_trivially_constructible_impl<_Tp, _Args...> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_trivially_default_constructible : public __is_trivially_constructible_impl<_Tp> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template constexpr bool __is_implicitly_default_constructible_v = requires (void(&__f)(_Tp)) { __f({}); }; template struct __is_implicitly_default_constructible : __bool_constant<__is_implicitly_default_constructible_v<_Tp>> { }; # 1403 "/usr/include/c++/15/type_traits" 3 template struct is_trivially_copy_constructible : public __is_trivially_constructible_impl<_Tp, __add_lval_ref_t> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_trivially_move_constructible : public __is_trivially_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template using __is_trivially_assignable_impl = __bool_constant<__is_trivially_assignable(_Tp, _Up)>; template struct is_trivially_assignable : public __is_trivially_assignable_impl<_Tp, _Up> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_trivially_copy_assignable : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, __add_lval_ref_t> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_trivially_move_assignable : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_trivially_destructible : public __and_<__is_destructible_safe<_Tp>, __bool_constant<__has_trivial_destructor(_Tp)>>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct has_virtual_destructor : public __bool_constant<__has_virtual_destructor(_Tp)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct alignment_of : public integral_constant { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct rank : public integral_constant { }; # 1508 "/usr/include/c++/15/type_traits" 3 template struct extent : public integral_constant { }; template struct extent<_Tp[_Size], 0> : public integral_constant { }; template struct extent<_Tp[_Size], _Uint> : public extent<_Tp, _Uint - 1>::type { }; template struct extent<_Tp[], 0> : public integral_constant { }; template struct extent<_Tp[], _Uint> : public extent<_Tp, _Uint - 1>::type { }; template struct is_same : public __bool_constant<__is_same(_Tp, _Up)> { }; # 1550 "/usr/include/c++/15/type_traits" 3 template struct is_base_of : public __bool_constant<__is_base_of(_Base, _Derived)> { }; # 1565 "/usr/include/c++/15/type_traits" 3 template struct is_convertible : public __bool_constant<__is_convertible(_From, _To)> { }; # 1608 "/usr/include/c++/15/type_traits" 3 template using __is_array_convertible = is_convertible<_FromElementType(*)[], _ToElementType(*)[]>; template inline constexpr bool is_nothrow_convertible_v = __is_nothrow_convertible(_From, _To); template struct is_nothrow_convertible : public bool_constant> { }; # 1668 "/usr/include/c++/15/type_traits" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++14-extensions" template struct __is_nothrow_new_constructible_impl : __bool_constant< noexcept(::new(std::declval()) _Tp(std::declval<_Args>()...)) > { }; template inline constexpr bool __is_nothrow_new_constructible = __and_, __is_nothrow_new_constructible_impl<_Tp, _Args...>>::value; #pragma GCC diagnostic pop template struct remove_const { using type = _Tp; }; template struct remove_const<_Tp const> { using type = _Tp; }; template struct remove_volatile { using type = _Tp; }; template struct remove_volatile<_Tp volatile> { using type = _Tp; }; template struct remove_cv { using type = __remove_cv(_Tp); }; # 1727 "/usr/include/c++/15/type_traits" 3 template struct add_const { using type = _Tp const; }; template struct add_volatile { using type = _Tp volatile; }; template struct add_cv { using type = _Tp const volatile; }; template using remove_const_t = typename remove_const<_Tp>::type; template using remove_volatile_t = typename remove_volatile<_Tp>::type; template using remove_cv_t = typename remove_cv<_Tp>::type; template using add_const_t = typename add_const<_Tp>::type; template using add_volatile_t = typename add_volatile<_Tp>::type; template using add_cv_t = typename add_cv<_Tp>::type; template struct remove_reference { using type = __remove_reference(_Tp); }; # 1789 "/usr/include/c++/15/type_traits" 3 template struct add_lvalue_reference { using type = __add_lval_ref_t<_Tp>; }; template struct add_rvalue_reference { using type = __add_rval_ref_t<_Tp>; }; template using remove_reference_t = typename remove_reference<_Tp>::type; template using add_lvalue_reference_t = typename add_lvalue_reference<_Tp>::type; template using add_rvalue_reference_t = typename add_rvalue_reference<_Tp>::type; template struct __cv_selector; template struct __cv_selector<_Unqualified, false, false> { using __type = _Unqualified; }; template struct __cv_selector<_Unqualified, false, true> { using __type = volatile _Unqualified; }; template struct __cv_selector<_Unqualified, true, false> { using __type = const _Unqualified; }; template struct __cv_selector<_Unqualified, true, true> { using __type = const volatile _Unqualified; }; template::value, bool _IsVol = is_volatile<_Qualified>::value> class __match_cv_qualifiers { using __match = __cv_selector<_Unqualified, _IsConst, _IsVol>; public: using __type = typename __match::__type; }; template struct __make_unsigned { using __type = _Tp; }; template<> struct __make_unsigned { using __type = unsigned char; }; template<> struct __make_unsigned { using __type = unsigned char; }; template<> struct __make_unsigned { using __type = unsigned short; }; template<> struct __make_unsigned { using __type = unsigned int; }; template<> struct __make_unsigned { using __type = unsigned long; }; template<> struct __make_unsigned { using __type = unsigned long long; }; __extension__ template<> struct __make_unsigned<__int128> { using __type = unsigned __int128; }; # 1902 "/usr/include/c++/15/type_traits" 3 template::value, bool _IsEnum = __is_enum(_Tp)> class __make_unsigned_selector; template class __make_unsigned_selector<_Tp, true, false> { using __unsigned_type = typename __make_unsigned<__remove_cv_t<_Tp>>::__type; public: using __type = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; }; class __make_unsigned_selector_base { protected: template struct _List { }; template struct _List<_Tp, _Up...> : _List<_Up...> { static constexpr size_t __size = sizeof(_Tp); }; template struct __select; template struct __select<_Sz, _List<_Uint, _UInts...>, true> { using __type = _Uint; }; template struct __select<_Sz, _List<_Uint, _UInts...>, false> : __select<_Sz, _List<_UInts...>> { }; }; template class __make_unsigned_selector<_Tp, false, true> : __make_unsigned_selector_base { using _UInts = _List; using __unsigned_type = typename __select::__type; public: using __type = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; }; template<> struct __make_unsigned { using __type = typename __make_unsigned_selector::__type; }; template<> struct __make_unsigned { using __type = typename __make_unsigned_selector::__type; }; template<> struct __make_unsigned { using __type = typename __make_unsigned_selector::__type; }; template<> struct __make_unsigned { using __type = typename __make_unsigned_selector::__type; }; template struct make_unsigned { using type = typename __make_unsigned_selector<_Tp>::__type; }; template<> struct make_unsigned; template<> struct make_unsigned; template<> struct make_unsigned; template<> struct make_unsigned; template struct __make_signed { using __type = _Tp; }; template<> struct __make_signed { using __type = signed char; }; template<> struct __make_signed { using __type = signed char; }; template<> struct __make_signed { using __type = signed short; }; template<> struct __make_signed { using __type = signed int; }; template<> struct __make_signed { using __type = signed long; }; template<> struct __make_signed { using __type = signed long long; }; __extension__ template<> struct __make_signed { using __type = __int128; }; # 2062 "/usr/include/c++/15/type_traits" 3 template::value, bool _IsEnum = __is_enum(_Tp)> class __make_signed_selector; template class __make_signed_selector<_Tp, true, false> { using __signed_type = typename __make_signed<__remove_cv_t<_Tp>>::__type; public: using __type = typename __match_cv_qualifiers<_Tp, __signed_type>::__type; }; template class __make_signed_selector<_Tp, false, true> { using __unsigned_type = typename __make_unsigned_selector<_Tp>::__type; public: using __type = typename __make_signed_selector<__unsigned_type>::__type; }; template<> struct __make_signed { using __type = typename __make_signed_selector::__type; }; template<> struct __make_signed { using __type = typename __make_signed_selector::__type; }; template<> struct __make_signed { using __type = typename __make_signed_selector::__type; }; template<> struct __make_signed { using __type = typename __make_signed_selector::__type; }; template struct make_signed { using type = typename __make_signed_selector<_Tp>::__type; }; template<> struct make_signed; template<> struct make_signed; template<> struct make_signed; template<> struct make_signed; template using make_signed_t = typename make_signed<_Tp>::type; template using make_unsigned_t = typename make_unsigned<_Tp>::type; template struct remove_extent { using type = __remove_extent(_Tp); }; # 2170 "/usr/include/c++/15/type_traits" 3 template struct remove_all_extents { using type = __remove_all_extents(_Tp); }; # 2189 "/usr/include/c++/15/type_traits" 3 template using remove_extent_t = typename remove_extent<_Tp>::type; template using remove_all_extents_t = typename remove_all_extents<_Tp>::type; template struct remove_pointer { using type = __remove_pointer(_Tp); }; # 2221 "/usr/include/c++/15/type_traits" 3 template struct add_pointer { using type = __add_pointer(_Tp); }; # 2249 "/usr/include/c++/15/type_traits" 3 template using remove_pointer_t = typename remove_pointer<_Tp>::type; template using add_pointer_t = typename add_pointer<_Tp>::type; struct __attribute__((__aligned__)) __aligned_storage_max_align_t { }; constexpr size_t __aligned_storage_default_alignment([[__maybe_unused__]] size_t __len) { # 2280 "/usr/include/c++/15/type_traits" 3 return alignof(__aligned_storage_max_align_t); } # 2316 "/usr/include/c++/15/type_traits" 3 template struct [[__deprecated__]] aligned_storage { struct type { alignas(_Align) unsigned char __data[_Len]; }; }; template struct __strictest_alignment { static const size_t _S_alignment = 0; static const size_t _S_size = 0; }; template struct __strictest_alignment<_Tp, _Types...> { static const size_t _S_alignment = alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment ? alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment; static const size_t _S_size = sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size ? sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size; }; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" # 2361 "/usr/include/c++/15/type_traits" 3 template struct [[__deprecated__]] aligned_union { private: static_assert(sizeof...(_Types) != 0, "At least one type is required"); using __strictest = __strictest_alignment<_Types...>; static const size_t _S_len = _Len > __strictest::_S_size ? _Len : __strictest::_S_size; public: static const size_t alignment_value = __strictest::_S_alignment; using type = typename aligned_storage<_S_len, alignment_value>::type; }; template const size_t aligned_union<_Len, _Types...>::alignment_value; #pragma GCC diagnostic pop template struct decay { using type = __decay(_Tp); }; # 2426 "/usr/include/c++/15/type_traits" 3 template struct __strip_reference_wrapper { using __type = _Tp; }; template struct __strip_reference_wrapper > { using __type = _Tp&; }; template using __decay_t = typename decay<_Tp>::type; template using __decay_and_strip = __strip_reference_wrapper<__decay_t<_Tp>>; template using _Require = __enable_if_t<__and_<_Cond...>::value>; template using __remove_cvref_t = typename remove_cv::type>::type; template struct conditional { using type = _Iftrue; }; template struct conditional { using type = _Iffalse; }; template struct common_type; # 2482 "/usr/include/c++/15/type_traits" 3 template struct __success_type { using type = _Tp; }; struct __failure_type { }; struct __do_common_type_impl { template using __cond_t = decltype(true ? std::declval<_Tp>() : std::declval<_Up>()); template static __success_type<__decay_t<__cond_t<_Tp, _Up>>> _S_test(int); template static __success_type<__remove_cvref_t<__cond_t>> _S_test_2(int); template static __failure_type _S_test_2(...); template static decltype(_S_test_2<_Tp, _Up>(0)) _S_test(...); }; template<> struct common_type<> { }; template struct common_type<_Tp0> : public common_type<_Tp0, _Tp0> { }; template, typename _Dp2 = __decay_t<_Tp2>> struct __common_type_impl { using type = common_type<_Dp1, _Dp2>; }; template struct __common_type_impl<_Tp1, _Tp2, _Tp1, _Tp2> : private __do_common_type_impl { using type = decltype(_S_test<_Tp1, _Tp2>(0)); }; template struct common_type<_Tp1, _Tp2> : public __common_type_impl<_Tp1, _Tp2>::type { }; template struct __common_type_pack { }; template struct __common_type_fold; template struct common_type<_Tp1, _Tp2, _Rp...> : public __common_type_fold, __common_type_pack<_Rp...>> { }; template struct __common_type_fold<_CTp, __common_type_pack<_Rp...>, __void_t> : public common_type { }; template struct __common_type_fold<_CTp, _Rp, void> { }; template struct __underlying_type_impl { using type = __underlying_type(_Tp); }; template struct __underlying_type_impl<_Tp, false> { }; template struct underlying_type : public __underlying_type_impl<_Tp> { }; template struct __declval_protector { static const bool __stop = false; }; template auto declval() noexcept -> decltype(__declval<_Tp>(0)) { static_assert(__declval_protector<_Tp>::__stop, "declval() must not be used!"); return __declval<_Tp>(0); } template struct result_of; struct __invoke_memfun_ref { }; struct __invoke_memfun_deref { }; struct __invoke_memobj_ref { }; struct __invoke_memobj_deref { }; struct __invoke_other { }; template struct __result_of_success : __success_type<_Tp> { using __invoke_type = _Tag; }; struct __result_of_memfun_ref_impl { template static __result_of_success().*std::declval<_Fp>())(std::declval<_Args>()...) ), __invoke_memfun_ref> _S_test(int); template static __failure_type _S_test(...); }; template struct __result_of_memfun_ref : private __result_of_memfun_ref_impl { using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); }; struct __result_of_memfun_deref_impl { template static __result_of_success()).*std::declval<_Fp>())(std::declval<_Args>()...) ), __invoke_memfun_deref> _S_test(int); template static __failure_type _S_test(...); }; template struct __result_of_memfun_deref : private __result_of_memfun_deref_impl { using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); }; struct __result_of_memobj_ref_impl { template static __result_of_success().*std::declval<_Fp>() ), __invoke_memobj_ref> _S_test(int); template static __failure_type _S_test(...); }; template struct __result_of_memobj_ref : private __result_of_memobj_ref_impl { using type = decltype(_S_test<_MemPtr, _Arg>(0)); }; struct __result_of_memobj_deref_impl { template static __result_of_success()).*std::declval<_Fp>() ), __invoke_memobj_deref> _S_test(int); template static __failure_type _S_test(...); }; template struct __result_of_memobj_deref : private __result_of_memobj_deref_impl { using type = decltype(_S_test<_MemPtr, _Arg>(0)); }; template struct __result_of_memobj; template struct __result_of_memobj<_Res _Class::*, _Arg> { using _Argval = __remove_cvref_t<_Arg>; using _MemPtr = _Res _Class::*; using type = typename __conditional_t<__or_, is_base_of<_Class, _Argval>>::value, __result_of_memobj_ref<_MemPtr, _Arg>, __result_of_memobj_deref<_MemPtr, _Arg> >::type; }; template struct __result_of_memfun; template struct __result_of_memfun<_Res _Class::*, _Arg, _Args...> { using _Argval = typename remove_reference<_Arg>::type; using _MemPtr = _Res _Class::*; using type = typename __conditional_t::value, __result_of_memfun_ref<_MemPtr, _Arg, _Args...>, __result_of_memfun_deref<_MemPtr, _Arg, _Args...> >::type; }; template> struct __inv_unwrap { using type = _Tp; }; template struct __inv_unwrap<_Tp, reference_wrapper<_Up>> { using type = _Up&; }; template struct __result_of_impl { using type = __failure_type; }; template struct __result_of_impl : public __result_of_memobj<__decay_t<_MemPtr>, typename __inv_unwrap<_Arg>::type> { }; template struct __result_of_impl : public __result_of_memfun<__decay_t<_MemPtr>, typename __inv_unwrap<_Arg>::type, _Args...> { }; struct __result_of_other_impl { template static __result_of_success()(std::declval<_Args>()...) ), __invoke_other> _S_test(int); template static __failure_type _S_test(...); }; template struct __result_of_impl : private __result_of_other_impl { using type = decltype(_S_test<_Functor, _ArgTypes...>(0)); }; template struct __invoke_result : public __result_of_impl< is_member_object_pointer< typename remove_reference<_Functor>::type >::value, is_member_function_pointer< typename remove_reference<_Functor>::type >::value, _Functor, _ArgTypes... >::type { }; template using __invoke_result_t = typename __invoke_result<_Fn, _Args...>::type; template struct result_of<_Functor(_ArgTypes...)> : public __invoke_result<_Functor, _ArgTypes...> { } __attribute__ ((__deprecated__ ("use '" "std::invoke_result" "' instead"))); #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template using aligned_storage_t [[__deprecated__]] = typename aligned_storage<_Len, _Align>::type; template using aligned_union_t [[__deprecated__]] = typename aligned_union<_Len, _Types...>::type; #pragma GCC diagnostic pop template using decay_t = typename decay<_Tp>::type; template using enable_if_t = typename enable_if<_Cond, _Tp>::type; template using conditional_t = typename conditional<_Cond, _Iftrue, _Iffalse>::type; template using common_type_t = typename common_type<_Tp...>::type; template using underlying_type_t = typename underlying_type<_Tp>::type; template using result_of_t = typename result_of<_Tp>::type; template using void_t = void; # 2869 "/usr/include/c++/15/type_traits" 3 template class _Op, typename... _Args> struct __detected_or { using type = _Def; using __is_detected = false_type; }; template class _Op, typename... _Args> requires requires { typename _Op<_Args...>; } struct __detected_or<_Def, _Op, _Args...> { using type = _Op<_Args...>; using __is_detected = true_type; }; # 2909 "/usr/include/c++/15/type_traits" 3 template class _Op, typename... _Args> using __detected_or_t = typename __detected_or<_Default, _Op, _Args...>::type; # 2928 "/usr/include/c++/15/type_traits" 3 template struct __is_swappable; template struct __is_nothrow_swappable; template struct __is_tuple_like_impl : false_type { }; template struct __is_tuple_like : public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type { }; template constexpr inline _Require<__not_<__is_tuple_like<_Tp>>, is_move_constructible<_Tp>, is_move_assignable<_Tp>> swap(_Tp&, _Tp&) noexcept(__and_, is_nothrow_move_assignable<_Tp>>::value); template constexpr inline __enable_if_t<__is_swappable<_Tp>::value> swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) noexcept(__is_nothrow_swappable<_Tp>::value); namespace __swappable_details { using std::swap; struct __do_is_swappable_impl { template(), std::declval<_Tp&>()))> static true_type __test(int); template static false_type __test(...); }; struct __do_is_nothrow_swappable_impl { template static __bool_constant< noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>())) > __test(int); template static false_type __test(...); }; } template struct __is_swappable_impl : public __swappable_details::__do_is_swappable_impl { using type = decltype(__test<_Tp>(0)); }; template struct __is_nothrow_swappable_impl : public __swappable_details::__do_is_nothrow_swappable_impl { using type = decltype(__test<_Tp>(0)); }; template struct __is_swappable : public __is_swappable_impl<_Tp>::type { }; template struct __is_nothrow_swappable : public __is_nothrow_swappable_impl<_Tp>::type { }; template struct is_swappable : public __is_swappable_impl<_Tp>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template struct is_nothrow_swappable : public __is_nothrow_swappable_impl<_Tp>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template inline constexpr bool is_swappable_v = is_swappable<_Tp>::value; template inline constexpr bool is_nothrow_swappable_v = is_nothrow_swappable<_Tp>::value; namespace __swappable_with_details { using std::swap; struct __do_is_swappable_with_impl { template(), std::declval<_Up>())), typename = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))> static true_type __test(int); template static false_type __test(...); }; struct __do_is_nothrow_swappable_with_impl { template static __bool_constant< noexcept(swap(std::declval<_Tp>(), std::declval<_Up>())) && noexcept(swap(std::declval<_Up>(), std::declval<_Tp>())) > __test(int); template static false_type __test(...); }; } template struct __is_swappable_with_impl : public __swappable_with_details::__do_is_swappable_with_impl { using type = decltype(__test<_Tp, _Up>(0)); }; template struct __is_swappable_with_impl<_Tp&, _Tp&> : public __swappable_details::__do_is_swappable_impl { using type = decltype(__test<_Tp&>(0)); }; template struct __is_nothrow_swappable_with_impl : public __swappable_with_details::__do_is_nothrow_swappable_with_impl { using type = decltype(__test<_Tp, _Up>(0)); }; template struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&> : public __swappable_details::__do_is_nothrow_swappable_impl { using type = decltype(__test<_Tp&>(0)); }; template struct is_swappable_with : public __is_swappable_with_impl<_Tp, _Up>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "first template argument must be a complete class or an unbounded array"); static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), "second template argument must be a complete class or an unbounded array"); }; template struct is_nothrow_swappable_with : public __is_nothrow_swappable_with_impl<_Tp, _Up>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "first template argument must be a complete class or an unbounded array"); static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), "second template argument must be a complete class or an unbounded array"); }; template inline constexpr bool is_swappable_with_v = is_swappable_with<_Tp, _Up>::value; template inline constexpr bool is_nothrow_swappable_with_v = is_nothrow_swappable_with<_Tp, _Up>::value; # 3150 "/usr/include/c++/15/type_traits" 3 template::value, typename = void> struct __is_invocable_impl : false_type { using __nothrow_conv = false_type; }; template struct __is_invocable_impl<_Result, _Ret, true, __void_t> : true_type { using __nothrow_conv = true_type; }; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" template struct __is_invocable_impl<_Result, _Ret, false, __void_t> { private: using _Res_t = typename _Result::type; static _Res_t _S_get() noexcept; template static void _S_conv(__type_identity_t<_Tp>) noexcept; template(_S_get())), typename = decltype(_S_conv<_Tp>(_S_get())), bool _Dangle = __reference_converts_from_temporary(_Tp, _Res_t) > static __bool_constant<_Nothrow && !_Dangle> _S_test(int); template static false_type _S_test(...); public: using type = decltype(_S_test<_Ret, true>(1)); using __nothrow_conv = decltype(_S_test<_Ret>(1)); }; #pragma GCC diagnostic pop template struct __is_invocable : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type { }; template constexpr bool __call_is_nt(__invoke_memfun_ref) { using _Up = typename __inv_unwrap<_Tp>::type; return noexcept((std::declval<_Up>().*std::declval<_Fn>())( std::declval<_Args>()...)); } template constexpr bool __call_is_nt(__invoke_memfun_deref) { return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())( std::declval<_Args>()...)); } template constexpr bool __call_is_nt(__invoke_memobj_ref) { using _Up = typename __inv_unwrap<_Tp>::type; return noexcept(std::declval<_Up>().*std::declval<_Fn>()); } template constexpr bool __call_is_nt(__invoke_memobj_deref) { return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>()); } template constexpr bool __call_is_nt(__invoke_other) { return noexcept(std::declval<_Fn>()(std::declval<_Args>()...)); } template struct __call_is_nothrow : __bool_constant< std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{}) > { }; template using __call_is_nothrow_ = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>; template struct __is_nothrow_invocable : __and_<__is_invocable<_Fn, _Args...>, __call_is_nothrow_<_Fn, _Args...>>::type { }; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" struct __nonesuchbase {}; struct __nonesuch : private __nonesuchbase { ~__nonesuch() = delete; __nonesuch(__nonesuch const&) = delete; void operator=(__nonesuch const&) = delete; }; #pragma GCC diagnostic pop template struct invoke_result : public __invoke_result<_Functor, _ArgTypes...> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Functor>{}), "_Functor must be a complete class or an unbounded array"); static_assert((std::__is_complete_or_unbounded( __type_identity<_ArgTypes>{}) && ...), "each argument type must be a complete class or an unbounded array"); }; template using invoke_result_t = typename invoke_result<_Fn, _Args...>::type; template struct is_invocable : public __bool_constant<__is_invocable(_Fn, _ArgTypes...)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), "_Fn must be a complete class or an unbounded array"); static_assert((std::__is_complete_or_unbounded( __type_identity<_ArgTypes>{}) && ...), "each argument type must be a complete class or an unbounded array"); }; template struct is_invocable_r : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), "_Fn must be a complete class or an unbounded array"); static_assert((std::__is_complete_or_unbounded( __type_identity<_ArgTypes>{}) && ...), "each argument type must be a complete class or an unbounded array"); static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), "_Ret must be a complete class or an unbounded array"); }; template struct is_nothrow_invocable : public __bool_constant<__is_nothrow_invocable(_Fn, _ArgTypes...)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), "_Fn must be a complete class or an unbounded array"); static_assert((std::__is_complete_or_unbounded( __type_identity<_ArgTypes>{}) && ...), "each argument type must be a complete class or an unbounded array"); }; template using __is_nt_invocable_impl = typename __is_invocable_impl<_Result, _Ret>::__nothrow_conv; template struct is_nothrow_invocable_r : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>, __call_is_nothrow_<_Fn, _ArgTypes...>>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), "_Fn must be a complete class or an unbounded array"); static_assert((std::__is_complete_or_unbounded( __type_identity<_ArgTypes>{}) && ...), "each argument type must be a complete class or an unbounded array"); static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), "_Ret must be a complete class or an unbounded array"); }; # 3386 "/usr/include/c++/15/type_traits" 3 template inline constexpr bool is_void_v = is_void<_Tp>::value; template inline constexpr bool is_null_pointer_v = is_null_pointer<_Tp>::value; template inline constexpr bool is_integral_v = is_integral<_Tp>::value; template inline constexpr bool is_floating_point_v = is_floating_point<_Tp>::value; template inline constexpr bool is_array_v = __is_array(_Tp); # 3408 "/usr/include/c++/15/type_traits" 3 template inline constexpr bool is_pointer_v = __is_pointer(_Tp); # 3423 "/usr/include/c++/15/type_traits" 3 template inline constexpr bool is_lvalue_reference_v = false; template inline constexpr bool is_lvalue_reference_v<_Tp&> = true; template inline constexpr bool is_rvalue_reference_v = false; template inline constexpr bool is_rvalue_reference_v<_Tp&&> = true; template inline constexpr bool is_member_object_pointer_v = __is_member_object_pointer(_Tp); template inline constexpr bool is_member_function_pointer_v = __is_member_function_pointer(_Tp); template inline constexpr bool is_enum_v = __is_enum(_Tp); template inline constexpr bool is_union_v = __is_union(_Tp); template inline constexpr bool is_class_v = __is_class(_Tp); template inline constexpr bool is_reference_v = __is_reference(_Tp); # 3472 "/usr/include/c++/15/type_traits" 3 template inline constexpr bool is_arithmetic_v = is_arithmetic<_Tp>::value; template inline constexpr bool is_fundamental_v = is_fundamental<_Tp>::value; template inline constexpr bool is_object_v = __is_object(_Tp); template inline constexpr bool is_scalar_v = is_scalar<_Tp>::value; template inline constexpr bool is_compound_v = !is_fundamental_v<_Tp>; template inline constexpr bool is_member_pointer_v = __is_member_pointer(_Tp); template inline constexpr bool is_const_v = __is_const(_Tp); # 3509 "/usr/include/c++/15/type_traits" 3 template inline constexpr bool is_function_v = __is_function(_Tp); # 3521 "/usr/include/c++/15/type_traits" 3 template inline constexpr bool is_volatile_v = __is_volatile(_Tp); template inline constexpr bool is_trivial_v = __is_trivial(_Tp); template inline constexpr bool is_trivially_copyable_v = __is_trivially_copyable(_Tp); template inline constexpr bool is_standard_layout_v = __is_standard_layout(_Tp); template __attribute__ ((__deprecated__ ("use '" "is_standard_layout_v && is_trivial_v" "' instead"))) inline constexpr bool is_pod_v = __is_pod(_Tp); template [[__deprecated__]] inline constexpr bool is_literal_type_v = __is_literal_type(_Tp); template inline constexpr bool is_empty_v = __is_empty(_Tp); template inline constexpr bool is_polymorphic_v = __is_polymorphic(_Tp); template inline constexpr bool is_abstract_v = __is_abstract(_Tp); template inline constexpr bool is_final_v = __is_final(_Tp); template inline constexpr bool is_signed_v = is_signed<_Tp>::value; template inline constexpr bool is_unsigned_v = is_unsigned<_Tp>::value; template inline constexpr bool is_constructible_v = __is_constructible(_Tp, _Args...); template inline constexpr bool is_default_constructible_v = __is_constructible(_Tp); template inline constexpr bool is_copy_constructible_v = __is_constructible(_Tp, __add_lval_ref_t); template inline constexpr bool is_move_constructible_v = __is_constructible(_Tp, __add_rval_ref_t<_Tp>); template inline constexpr bool is_assignable_v = __is_assignable(_Tp, _Up); template inline constexpr bool is_copy_assignable_v = __is_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t); template inline constexpr bool is_move_assignable_v = __is_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); template inline constexpr bool is_destructible_v = is_destructible<_Tp>::value; template inline constexpr bool is_trivially_constructible_v = __is_trivially_constructible(_Tp, _Args...); template inline constexpr bool is_trivially_default_constructible_v = __is_trivially_constructible(_Tp); template inline constexpr bool is_trivially_copy_constructible_v = __is_trivially_constructible(_Tp, __add_lval_ref_t); template inline constexpr bool is_trivially_move_constructible_v = __is_trivially_constructible(_Tp, __add_rval_ref_t<_Tp>); template inline constexpr bool is_trivially_assignable_v = __is_trivially_assignable(_Tp, _Up); template inline constexpr bool is_trivially_copy_assignable_v = __is_trivially_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t); template inline constexpr bool is_trivially_move_assignable_v = __is_trivially_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); template inline constexpr bool is_trivially_destructible_v = false; template requires (!is_reference_v<_Tp>) && requires (_Tp& __t) { __t.~_Tp(); } inline constexpr bool is_trivially_destructible_v<_Tp> = __has_trivial_destructor(_Tp); template inline constexpr bool is_trivially_destructible_v<_Tp&> = true; template inline constexpr bool is_trivially_destructible_v<_Tp&&> = true; template inline constexpr bool is_trivially_destructible_v<_Tp[_Nm]> = is_trivially_destructible_v<_Tp>; template inline constexpr bool is_nothrow_constructible_v = __is_nothrow_constructible(_Tp, _Args...); template inline constexpr bool is_nothrow_default_constructible_v = __is_nothrow_constructible(_Tp); template inline constexpr bool is_nothrow_copy_constructible_v = __is_nothrow_constructible(_Tp, __add_lval_ref_t); template inline constexpr bool is_nothrow_move_constructible_v = __is_nothrow_constructible(_Tp, __add_rval_ref_t<_Tp>); template inline constexpr bool is_nothrow_assignable_v = __is_nothrow_assignable(_Tp, _Up); template inline constexpr bool is_nothrow_copy_assignable_v = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t); template inline constexpr bool is_nothrow_move_assignable_v = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); template inline constexpr bool is_nothrow_destructible_v = is_nothrow_destructible<_Tp>::value; template inline constexpr bool has_virtual_destructor_v = __has_virtual_destructor(_Tp); template inline constexpr size_t alignment_of_v = alignment_of<_Tp>::value; template inline constexpr size_t rank_v = __array_rank(_Tp); # 3674 "/usr/include/c++/15/type_traits" 3 template inline constexpr size_t extent_v = 0; template inline constexpr size_t extent_v<_Tp[_Size], 0> = _Size; template inline constexpr size_t extent_v<_Tp[_Size], _Idx> = extent_v<_Tp, _Idx - 1>; template inline constexpr size_t extent_v<_Tp[], 0> = 0; template inline constexpr size_t extent_v<_Tp[], _Idx> = extent_v<_Tp, _Idx - 1>; template inline constexpr bool is_same_v = __is_same(_Tp, _Up); template inline constexpr bool is_base_of_v = __is_base_of(_Base, _Derived); template inline constexpr bool is_convertible_v = __is_convertible(_From, _To); template inline constexpr bool is_invocable_v = is_invocable<_Fn, _Args...>::value; template inline constexpr bool is_nothrow_invocable_v = is_nothrow_invocable<_Fn, _Args...>::value; template inline constexpr bool is_invocable_r_v = is_invocable_r<_Ret, _Fn, _Args...>::value; template inline constexpr bool is_nothrow_invocable_r_v = is_nothrow_invocable_r<_Ret, _Fn, _Args...>::value; template struct has_unique_object_representations : bool_constant<__has_unique_object_representations( remove_cv_t> )> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template inline constexpr bool has_unique_object_representations_v = has_unique_object_representations<_Tp>::value; template struct is_aggregate : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> { }; template inline constexpr bool is_aggregate_v = __is_aggregate(remove_cv_t<_Tp>); # 3766 "/usr/include/c++/15/type_traits" 3 template struct remove_cvref { using type = __remove_cvref(_Tp); }; # 3783 "/usr/include/c++/15/type_traits" 3 template using remove_cvref_t = typename remove_cvref<_Tp>::type; # 3793 "/usr/include/c++/15/type_traits" 3 template struct type_identity { using type = _Tp; }; template using type_identity_t = typename type_identity<_Tp>::type; # 3806 "/usr/include/c++/15/type_traits" 3 template struct unwrap_reference { using type = _Tp; }; template struct unwrap_reference> { using type = _Tp&; }; template using unwrap_reference_t = typename unwrap_reference<_Tp>::type; template struct unwrap_ref_decay { using type = unwrap_reference_t>; }; template using unwrap_ref_decay_t = typename unwrap_ref_decay<_Tp>::type; # 3833 "/usr/include/c++/15/type_traits" 3 template inline constexpr bool is_bounded_array_v = __is_bounded_array(_Tp); # 3847 "/usr/include/c++/15/type_traits" 3 template inline constexpr bool is_unbounded_array_v = __is_unbounded_array(_Tp); # 3859 "/usr/include/c++/15/type_traits" 3 template struct is_bounded_array : public bool_constant> { }; template struct is_unbounded_array : public bool_constant> { }; template struct is_layout_compatible : bool_constant<__is_layout_compatible(_Tp, _Up)> { }; template constexpr bool is_layout_compatible_v = __is_layout_compatible(_Tp, _Up); template constexpr bool is_corresponding_member(_M1 _S1::*__m1, _M2 _S2::*__m2) noexcept { return __builtin_is_corresponding_member(__m1, __m2); } template struct is_pointer_interconvertible_base_of : bool_constant<__is_pointer_interconvertible_base_of(_Base, _Derived)> { }; template constexpr bool is_pointer_interconvertible_base_of_v = __is_pointer_interconvertible_base_of(_Base, _Derived); # 3922 "/usr/include/c++/15/type_traits" 3 template constexpr bool is_pointer_interconvertible_with_class(_Mem _Tp::*__mp) noexcept { return __builtin_is_pointer_interconvertible_with_class(__mp); } # 3934 "/usr/include/c++/15/type_traits" 3 template struct is_scoped_enum : bool_constant<__is_scoped_enum(_Tp)> { }; # 3955 "/usr/include/c++/15/type_traits" 3 template inline constexpr bool is_scoped_enum_v = __is_scoped_enum(_Tp); # 3968 "/usr/include/c++/15/type_traits" 3 template struct reference_constructs_from_temporary : public bool_constant<__reference_constructs_from_temporary(_Tp, _Up)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}) && std::__is_complete_or_unbounded(__type_identity<_Up>{}), "template argument must be a complete class or an unbounded array"); }; template struct reference_converts_from_temporary : public bool_constant<__reference_converts_from_temporary(_Tp, _Up)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}) && std::__is_complete_or_unbounded(__type_identity<_Up>{}), "template argument must be a complete class or an unbounded array"); }; template inline constexpr bool reference_constructs_from_temporary_v = reference_constructs_from_temporary<_Tp, _Up>::value; template inline constexpr bool reference_converts_from_temporary_v = reference_converts_from_temporary<_Tp, _Up>::value; constexpr inline bool is_constant_evaluated() noexcept { if consteval { return true; } else { return false; } } template using __copy_cv = typename __match_cv_qualifiers<_From, _To>::__type; template using __cond_res = decltype(false ? declval<_Xp(&)()>()() : declval<_Yp(&)()>()()); template struct __common_ref_impl { }; template using __common_ref = typename __common_ref_impl<_Ap, _Bp>::type; template using __condres_cvref = __cond_res<__copy_cv<_Xp, _Yp>&, __copy_cv<_Yp, _Xp>&>; template struct __common_ref_impl<_Xp&, _Yp&, __void_t<__condres_cvref<_Xp, _Yp>>> : enable_if>, __condres_cvref<_Xp, _Yp>> { }; template using __common_ref_C = remove_reference_t<__common_ref<_Xp&, _Yp&>>&&; template struct __common_ref_impl<_Xp&&, _Yp&&, _Require>, is_convertible<_Yp&&, __common_ref_C<_Xp, _Yp>>>> { using type = __common_ref_C<_Xp, _Yp>; }; template using __common_ref_D = __common_ref; template struct __common_ref_impl<_Xp&&, _Yp&, _Require>>> { using type = __common_ref_D<_Xp, _Yp>; }; template struct __common_ref_impl<_Xp&, _Yp&&> : __common_ref_impl<_Yp&&, _Xp&> { }; template class _TQual, template class _UQual> struct basic_common_reference { }; template struct __xref { template using __type = __copy_cv<_Tp, _Up>; }; template struct __xref<_Tp&> { template using __type = __copy_cv<_Tp, _Up>&; }; template struct __xref<_Tp&&> { template using __type = __copy_cv<_Tp, _Up>&&; }; template using __basic_common_ref = typename basic_common_reference, remove_cvref_t<_Tp2>, __xref<_Tp1>::template __type, __xref<_Tp2>::template __type>::type; template struct common_reference; template using common_reference_t = typename common_reference<_Tp...>::type; template<> struct common_reference<> { }; template struct common_reference<_Tp0> { using type = _Tp0; }; template struct __common_reference_impl : __common_reference_impl<_Tp1, _Tp2, _Bullet + 1> { }; template struct common_reference<_Tp1, _Tp2> : __common_reference_impl<_Tp1, _Tp2> { }; template requires is_reference_v<_Tp1> && is_reference_v<_Tp2> && requires { typename __common_ref<_Tp1, _Tp2>; } && is_convertible_v, add_pointer_t<__common_ref<_Tp1, _Tp2>>> && is_convertible_v, add_pointer_t<__common_ref<_Tp1, _Tp2>>> struct __common_reference_impl<_Tp1, _Tp2, 1> { using type = __common_ref<_Tp1, _Tp2>; }; template requires requires { typename __basic_common_ref<_Tp1, _Tp2>; } struct __common_reference_impl<_Tp1, _Tp2, 2> { using type = __basic_common_ref<_Tp1, _Tp2>; }; template requires requires { typename __cond_res<_Tp1, _Tp2>; } struct __common_reference_impl<_Tp1, _Tp2, 3> { using type = __cond_res<_Tp1, _Tp2>; }; template requires requires { typename common_type_t<_Tp1, _Tp2>; } struct __common_reference_impl<_Tp1, _Tp2, 4> { using type = common_type_t<_Tp1, _Tp2>; }; template struct __common_reference_impl<_Tp1, _Tp2, 5> { }; template struct common_reference<_Tp1, _Tp2, _Rest...> : __common_type_fold, __common_type_pack<_Rest...>> { }; template struct __common_type_fold, __common_type_pack<_Rest...>, void_t>> : public common_reference, _Rest...> { }; } } # 61 "/usr/include/c++/15/bits/stl_pair.h" 2 3 # 1 "/usr/include/c++/15/bits/move.h" 1 3 # 40 "/usr/include/c++/15/bits/move.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template __attribute__((__always_inline__)) inline constexpr _Tp* __addressof(_Tp& __r) noexcept { return __builtin_addressof(__r); } # 69 "/usr/include/c++/15/bits/move.h" 3 template [[__nodiscard__,__gnu__::__always_inline__]] constexpr _Tp&& forward(typename std::remove_reference<_Tp>::type& __t) noexcept { return static_cast<_Tp&&>(__t); } # 82 "/usr/include/c++/15/bits/move.h" 3 template [[__nodiscard__,__gnu__::__always_inline__]] constexpr _Tp&& forward(typename std::remove_reference<_Tp>::type&& __t) noexcept { static_assert(!std::is_lvalue_reference<_Tp>::value, "std::forward must not be used to convert an rvalue to an lvalue"); return static_cast<_Tp&&>(__t); } template struct __like_impl; template struct __like_impl<_Tp&, _Up&> { using type = _Up&; }; template struct __like_impl { using type = const _Up&; }; template struct __like_impl<_Tp&&, _Up&> { using type = _Up&&; }; template struct __like_impl { using type = const _Up&&; }; template using __like_t = typename __like_impl<_Tp&&, _Up&>::type; # 122 "/usr/include/c++/15/bits/move.h" 3 template [[nodiscard,__gnu__::__always_inline__]] constexpr __like_t<_Tp, _Up> forward_like(_Up&& __x) noexcept { return static_cast<__like_t<_Tp, _Up>>(__x); } # 135 "/usr/include/c++/15/bits/move.h" 3 template [[__nodiscard__,__gnu__::__always_inline__]] constexpr typename std::remove_reference<_Tp>::type&& move(_Tp&& __t) noexcept { return static_cast::type&&>(__t); } template struct __move_if_noexcept_cond : public __and_<__not_>, is_copy_constructible<_Tp>>::type { }; # 156 "/usr/include/c++/15/bits/move.h" 3 template [[__nodiscard__,__gnu__::__always_inline__]] constexpr __conditional_t<__move_if_noexcept_cond<_Tp>::value, const _Tp&, _Tp&&> move_if_noexcept(_Tp& __x) noexcept { return std::move(__x); } # 173 "/usr/include/c++/15/bits/move.h" 3 template [[__nodiscard__,__gnu__::__always_inline__]] inline constexpr _Tp* addressof(_Tp& __r) noexcept { return std::__addressof(__r); } template const _Tp* addressof(const _Tp&&) = delete; template constexpr inline _Tp __exchange(_Tp& __obj, _Up&& __new_val) { _Tp __old_val = std::move(__obj); __obj = std::forward<_Up>(__new_val); return __old_val; } # 217 "/usr/include/c++/15/bits/move.h" 3 template constexpr inline typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>, is_move_constructible<_Tp>, is_move_assignable<_Tp>>::value>::type swap(_Tp& __a, _Tp& __b) noexcept(__and_, is_nothrow_move_assignable<_Tp>>::value) { _Tp __tmp = std::move(__a); __a = std::move(__b); __b = std::move(__tmp); } template constexpr inline typename enable_if<__is_swappable<_Tp>::value>::type swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) noexcept(__is_nothrow_swappable<_Tp>::value) { for (size_t __n = 0; __n < _Nm; ++__n) swap(__a[__n], __b[__n]); } } # 62 "/usr/include/c++/15/bits/stl_pair.h" 2 3 # 1 "/usr/include/c++/15/bits/utility.h" 1 3 # 45 "/usr/include/c++/15/bits/utility.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template struct tuple_size; template::type, typename = typename enable_if::value>::type, size_t = tuple_size<_Tp>::value> using __enable_if_has_tuple_size = _Tp; template struct tuple_size> : public tuple_size<_Tp> { }; template struct tuple_size> : public tuple_size<_Tp> { }; template struct tuple_size> : public tuple_size<_Tp> { }; template inline constexpr size_t tuple_size_v = tuple_size<_Tp>::value; template struct tuple_element; template using __tuple_element_t = typename tuple_element<__i, _Tp>::type; template struct tuple_element<__i, const _Tp> { using type = const __tuple_element_t<__i, _Tp>; }; template struct tuple_element<__i, volatile _Tp> { using type = volatile __tuple_element_t<__i, _Tp>; }; template struct tuple_element<__i, const volatile _Tp> { using type = const volatile __tuple_element_t<__i, _Tp>; }; template constexpr size_t __find_uniq_type_in_pack() { constexpr size_t __sz = sizeof...(_Types); constexpr bool __found[__sz] = { __is_same(_Tp, _Types) ... }; size_t __n = __sz; for (size_t __i = 0; __i < __sz; ++__i) { if (__found[__i]) { if (__n < __sz) return __sz; __n = __i; } } return __n; } # 136 "/usr/include/c++/15/bits/utility.h" 3 template using tuple_element_t = typename tuple_element<__i, _Tp>::type; template struct _Index_tuple { }; template struct _Build_index_tuple { # 156 "/usr/include/c++/15/bits/utility.h" 3 using __type = _Index_tuple<__integer_pack(_Num)...>; }; template struct integer_sequence { static_assert(is_integral_v<_Tp>); typedef _Tp value_type; static constexpr size_t size() noexcept { return sizeof...(_Idx); } }; template using make_integer_sequence = integer_sequence<_Tp, __integer_pack(_Num)...>; template using index_sequence = integer_sequence; template using make_index_sequence = make_integer_sequence; template using index_sequence_for = make_index_sequence; struct in_place_t { explicit in_place_t() = default; }; inline constexpr in_place_t in_place{}; template struct in_place_type_t { explicit in_place_type_t() = default; }; template inline constexpr in_place_type_t<_Tp> in_place_type{}; template struct in_place_index_t { explicit in_place_index_t() = default; }; template inline constexpr in_place_index_t<_Idx> in_place_index{}; template inline constexpr bool __is_in_place_type_v = false; template inline constexpr bool __is_in_place_type_v> = true; template inline constexpr bool __is_in_place_index_v = false; template inline constexpr bool __is_in_place_index_v> = true; template struct _Nth_type { using type = __type_pack_element<_Np, _Types...>; }; # 275 "/usr/include/c++/15/bits/utility.h" 3 namespace ranges::__detail { template inline constexpr bool __is_subrange = false; } struct _Swallow_assign { template constexpr const _Swallow_assign& operator=(const _Tp&) const noexcept { return *this; } }; # 309 "/usr/include/c++/15/bits/utility.h" 3 inline constexpr _Swallow_assign ignore{}; struct sorted_unique_t { explicit sorted_unique_t() = default; }; inline constexpr sorted_unique_t sorted_unique{}; struct sorted_equivalent_t { explicit sorted_equivalent_t() = default; }; inline constexpr sorted_equivalent_t sorted_equivalent{}; } # 63 "/usr/include/c++/15/bits/stl_pair.h" 2 3 # 1 "/usr/include/c++/15/compare" 1 3 # 38 "/usr/include/c++/15/compare" 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 39 "/usr/include/c++/15/compare" 2 3 # 1 "/usr/include/c++/15/concepts" 1 3 # 38 "/usr/include/c++/15/concepts" 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 39 "/usr/include/c++/15/concepts" 2 3 # 50 "/usr/include/c++/15/concepts" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __detail { template concept __same_as = std::is_same_v<_Tp, _Up>; } template concept same_as = __detail::__same_as<_Tp, _Up> && __detail::__same_as<_Up, _Tp>; namespace __detail { template concept __different_from = !same_as, remove_cvref_t<_Up>>; } template concept derived_from = __is_base_of(_Base, _Derived) && is_convertible_v; template concept convertible_to = is_convertible_v<_From, _To> && requires { static_cast<_To>(std::declval<_From>()); }; template concept common_reference_with = same_as, common_reference_t<_Up, _Tp>> && convertible_to<_Tp, common_reference_t<_Tp, _Up>> && convertible_to<_Up, common_reference_t<_Tp, _Up>>; template concept common_with = same_as, common_type_t<_Up, _Tp>> && requires { static_cast>(std::declval<_Tp>()); static_cast>(std::declval<_Up>()); } && common_reference_with, add_lvalue_reference_t> && common_reference_with>, common_reference_t< add_lvalue_reference_t, add_lvalue_reference_t>>; template concept integral = is_integral_v<_Tp>; template concept signed_integral = integral<_Tp> && is_signed_v<_Tp>; template concept unsigned_integral = integral<_Tp> && !signed_integral<_Tp>; template concept floating_point = is_floating_point_v<_Tp>; namespace __detail { template using __cref = const remove_reference_t<_Tp>&; template concept __class_or_enum = is_class_v<_Tp> || is_union_v<_Tp> || is_enum_v<_Tp>; template constexpr bool __destructible_impl = false; template requires requires(_Tp& __t) { { __t.~_Tp() } noexcept; } constexpr bool __destructible_impl<_Tp> = true; template constexpr bool __destructible = __destructible_impl<_Tp>; template constexpr bool __destructible<_Tp&> = true; template constexpr bool __destructible<_Tp&&> = true; template constexpr bool __destructible<_Tp[_Nm]> = __destructible<_Tp>; } template concept assignable_from = is_lvalue_reference_v<_Lhs> && common_reference_with<__detail::__cref<_Lhs>, __detail::__cref<_Rhs>> && requires(_Lhs __lhs, _Rhs&& __rhs) { { __lhs = static_cast<_Rhs&&>(__rhs) } -> same_as<_Lhs>; }; template concept destructible = __detail::__destructible<_Tp>; template concept constructible_from = destructible<_Tp> && is_constructible_v<_Tp, _Args...>; template concept default_initializable = constructible_from<_Tp> && requires { _Tp{}; (void) ::new _Tp; }; template concept move_constructible = constructible_from<_Tp, _Tp> && convertible_to<_Tp, _Tp>; template concept copy_constructible = move_constructible<_Tp> && constructible_from<_Tp, _Tp&> && convertible_to<_Tp&, _Tp> && constructible_from<_Tp, const _Tp&> && convertible_to && constructible_from<_Tp, const _Tp> && convertible_to; namespace ranges { namespace __swap { template void swap(_Tp&, _Tp&) = delete; template concept __adl_swap = (std::__detail::__class_or_enum> || std::__detail::__class_or_enum>) && requires(_Tp&& __t, _Up&& __u) { swap(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u)); }; struct _Swap { private: template static constexpr bool _S_noexcept() { if constexpr (__adl_swap<_Tp, _Up>) return noexcept(swap(std::declval<_Tp>(), std::declval<_Up>())); else return is_nothrow_move_constructible_v> && is_nothrow_move_assignable_v>; } public: template requires __adl_swap<_Tp, _Up> || (same_as<_Tp, _Up> && is_lvalue_reference_v<_Tp> && move_constructible> && assignable_from<_Tp, remove_reference_t<_Tp>>) constexpr void operator()(_Tp&& __t, _Up&& __u) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (__adl_swap<_Tp, _Up>) swap(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u)); else { auto __tmp = static_cast&&>(__t); __t = static_cast&&>(__u); __u = static_cast&&>(__tmp); } } template requires requires(const _Swap& __swap, _Tp& __e1, _Up& __e2) { __swap(__e1, __e2); } constexpr void operator()(_Tp (&__e1)[_Num], _Up (&__e2)[_Num]) const noexcept(noexcept(std::declval()(*__e1, *__e2))) { for (size_t __n = 0; __n < _Num; ++__n) (*this)(__e1[__n], __e2[__n]); } }; } inline namespace _Cpo { inline constexpr __swap::_Swap swap{}; } } template concept swappable = requires(_Tp& __a, _Tp& __b) { ranges::swap(__a, __b); }; template concept swappable_with = common_reference_with<_Tp, _Up> && requires(_Tp&& __t, _Up&& __u) { ranges::swap(static_cast<_Tp&&>(__t), static_cast<_Tp&&>(__t)); ranges::swap(static_cast<_Up&&>(__u), static_cast<_Up&&>(__u)); ranges::swap(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u)); ranges::swap(static_cast<_Up&&>(__u), static_cast<_Tp&&>(__t)); }; template concept movable = is_object_v<_Tp> && move_constructible<_Tp> && assignable_from<_Tp&, _Tp> && swappable<_Tp>; template concept copyable = copy_constructible<_Tp> && movable<_Tp> && assignable_from<_Tp&, _Tp&> && assignable_from<_Tp&, const _Tp&> && assignable_from<_Tp&, const _Tp>; template concept semiregular = copyable<_Tp> && default_initializable<_Tp>; namespace __detail { template concept __boolean_testable_impl = convertible_to<_Tp, bool>; template concept __boolean_testable = __boolean_testable_impl<_Tp> && requires(_Tp&& __t) { { !static_cast<_Tp&&>(__t) } -> __boolean_testable_impl; }; } namespace __detail { template concept __weakly_eq_cmp_with = requires(__detail::__cref<_Tp> __t, __detail::__cref<_Up> __u) { { __t == __u } -> __boolean_testable; { __t != __u } -> __boolean_testable; { __u == __t } -> __boolean_testable; { __u != __t } -> __boolean_testable; }; } template concept equality_comparable = __detail::__weakly_eq_cmp_with<_Tp, _Tp>; template concept equality_comparable_with = equality_comparable<_Tp> && equality_comparable<_Up> && common_reference_with<__detail::__cref<_Tp>, __detail::__cref<_Up>> && equality_comparable, __detail::__cref<_Up>>> && __detail::__weakly_eq_cmp_with<_Tp, _Up>; namespace __detail { template concept __partially_ordered_with = requires(const remove_reference_t<_Tp>& __t, const remove_reference_t<_Up>& __u) { { __t < __u } -> __boolean_testable; { __t > __u } -> __boolean_testable; { __t <= __u } -> __boolean_testable; { __t >= __u } -> __boolean_testable; { __u < __t } -> __boolean_testable; { __u > __t } -> __boolean_testable; { __u <= __t } -> __boolean_testable; { __u >= __t } -> __boolean_testable; }; } template concept totally_ordered = equality_comparable<_Tp> && __detail::__partially_ordered_with<_Tp, _Tp>; template concept totally_ordered_with = totally_ordered<_Tp> && totally_ordered<_Up> && equality_comparable_with<_Tp, _Up> && totally_ordered, __detail::__cref<_Up>>> && __detail::__partially_ordered_with<_Tp, _Up>; template concept regular = semiregular<_Tp> && equality_comparable<_Tp>; template concept invocable = is_invocable_v<_Fn, _Args...>; template concept regular_invocable = invocable<_Fn, _Args...>; template concept predicate = regular_invocable<_Fn, _Args...> && __detail::__boolean_testable>; template concept relation = predicate<_Rel, _Tp, _Tp> && predicate<_Rel, _Up, _Up> && predicate<_Rel, _Tp, _Up> && predicate<_Rel, _Up, _Tp>; template concept equivalence_relation = relation<_Rel, _Tp, _Up>; template concept strict_weak_order = relation<_Rel, _Tp, _Up>; namespace __detail { template concept __not_overloaded_spaceship = ! requires(_Tp&& __t, _Up&& __u) { operator<=>(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u)); } && ! requires(_Tp&& __t, _Up&& __u) { static_cast<_Tp&&>(__t).operator<=>(static_cast<_Up&&>(__u)); } && (is_same_v<_Tp, _Up> || (! requires(_Tp&& __t, _Up&& __u) { operator<=>(static_cast<_Up&&>(__u), static_cast<_Tp&&>(__t)); } && ! requires(_Tp&& __t, _Up&& __u) { static_cast<_Up&&>(__u).operator<=>(static_cast<_Tp&&>(__t)); })); } } # 43 "/usr/include/c++/15/compare" 2 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" namespace std __attribute__ ((__visibility__ ("default"))) { namespace __cmp_cat { using type = signed char; enum class _Ord : type { equivalent = 0, less = -1, greater = 1 }; enum class _Ncmp : type { _Unordered = 2 }; struct __unspec { consteval __unspec(__unspec*) noexcept { } }; } class partial_ordering { __cmp_cat::type _M_value; constexpr explicit partial_ordering(__cmp_cat::_Ord __v) noexcept : _M_value(__cmp_cat::type(__v)) { } constexpr explicit partial_ordering(__cmp_cat::_Ncmp __v) noexcept : _M_value(__cmp_cat::type(__v)) { } friend class weak_ordering; friend class strong_ordering; public: static const partial_ordering less; static const partial_ordering equivalent; static const partial_ordering greater; static const partial_ordering unordered; [[nodiscard]] friend constexpr bool operator==(partial_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value == 0; } [[nodiscard]] friend constexpr bool operator==(partial_ordering, partial_ordering) noexcept = default; [[nodiscard]] friend constexpr bool operator< (partial_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value == -1; } [[nodiscard]] friend constexpr bool operator> (partial_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value == 1; } [[nodiscard]] friend constexpr bool operator<=(partial_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value <= 0; } [[nodiscard]] friend constexpr bool operator>=(partial_ordering __v, __cmp_cat::__unspec) noexcept { return __cmp_cat::type(__v._M_value & 1) == __v._M_value; } [[nodiscard]] friend constexpr bool operator< (__cmp_cat::__unspec, partial_ordering __v) noexcept { return __v._M_value == 1; } [[nodiscard]] friend constexpr bool operator> (__cmp_cat::__unspec, partial_ordering __v) noexcept { return __v._M_value == -1; } [[nodiscard]] friend constexpr bool operator<=(__cmp_cat::__unspec, partial_ordering __v) noexcept { return __cmp_cat::type(__v._M_value & 1) == __v._M_value; } [[nodiscard]] friend constexpr bool operator>=(__cmp_cat::__unspec, partial_ordering __v) noexcept { return 0 >= __v._M_value; } [[nodiscard]] friend constexpr partial_ordering operator<=>(partial_ordering __v, __cmp_cat::__unspec) noexcept { return __v; } [[nodiscard]] friend constexpr partial_ordering operator<=>(__cmp_cat::__unspec, partial_ordering __v) noexcept { if (__v._M_value & 1) return partial_ordering(__cmp_cat::_Ord(-__v._M_value)); else return __v; } }; inline constexpr partial_ordering partial_ordering::less(__cmp_cat::_Ord::less); inline constexpr partial_ordering partial_ordering::equivalent(__cmp_cat::_Ord::equivalent); inline constexpr partial_ordering partial_ordering::greater(__cmp_cat::_Ord::greater); inline constexpr partial_ordering partial_ordering::unordered(__cmp_cat::_Ncmp::_Unordered); class weak_ordering { __cmp_cat::type _M_value; constexpr explicit weak_ordering(__cmp_cat::_Ord __v) noexcept : _M_value(__cmp_cat::type(__v)) { } friend class strong_ordering; public: static const weak_ordering less; static const weak_ordering equivalent; static const weak_ordering greater; [[nodiscard]] constexpr operator partial_ordering() const noexcept { return partial_ordering(__cmp_cat::_Ord(_M_value)); } [[nodiscard]] friend constexpr bool operator==(weak_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value == 0; } [[nodiscard]] friend constexpr bool operator==(weak_ordering, weak_ordering) noexcept = default; [[nodiscard]] friend constexpr bool operator< (weak_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value < 0; } [[nodiscard]] friend constexpr bool operator> (weak_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value > 0; } [[nodiscard]] friend constexpr bool operator<=(weak_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value <= 0; } [[nodiscard]] friend constexpr bool operator>=(weak_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value >= 0; } [[nodiscard]] friend constexpr bool operator< (__cmp_cat::__unspec, weak_ordering __v) noexcept { return 0 < __v._M_value; } [[nodiscard]] friend constexpr bool operator> (__cmp_cat::__unspec, weak_ordering __v) noexcept { return 0 > __v._M_value; } [[nodiscard]] friend constexpr bool operator<=(__cmp_cat::__unspec, weak_ordering __v) noexcept { return 0 <= __v._M_value; } [[nodiscard]] friend constexpr bool operator>=(__cmp_cat::__unspec, weak_ordering __v) noexcept { return 0 >= __v._M_value; } [[nodiscard]] friend constexpr weak_ordering operator<=>(weak_ordering __v, __cmp_cat::__unspec) noexcept { return __v; } [[nodiscard]] friend constexpr weak_ordering operator<=>(__cmp_cat::__unspec, weak_ordering __v) noexcept { return weak_ordering(__cmp_cat::_Ord(-__v._M_value)); } }; inline constexpr weak_ordering weak_ordering::less(__cmp_cat::_Ord::less); inline constexpr weak_ordering weak_ordering::equivalent(__cmp_cat::_Ord::equivalent); inline constexpr weak_ordering weak_ordering::greater(__cmp_cat::_Ord::greater); class strong_ordering { __cmp_cat::type _M_value; constexpr explicit strong_ordering(__cmp_cat::_Ord __v) noexcept : _M_value(__cmp_cat::type(__v)) { } public: static const strong_ordering less; static const strong_ordering equal; static const strong_ordering equivalent; static const strong_ordering greater; [[nodiscard]] constexpr operator partial_ordering() const noexcept { return partial_ordering(__cmp_cat::_Ord(_M_value)); } [[nodiscard]] constexpr operator weak_ordering() const noexcept { return weak_ordering(__cmp_cat::_Ord(_M_value)); } [[nodiscard]] friend constexpr bool operator==(strong_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value == 0; } [[nodiscard]] friend constexpr bool operator==(strong_ordering, strong_ordering) noexcept = default; [[nodiscard]] friend constexpr bool operator< (strong_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value < 0; } [[nodiscard]] friend constexpr bool operator> (strong_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value > 0; } [[nodiscard]] friend constexpr bool operator<=(strong_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value <= 0; } [[nodiscard]] friend constexpr bool operator>=(strong_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value >= 0; } [[nodiscard]] friend constexpr bool operator< (__cmp_cat::__unspec, strong_ordering __v) noexcept { return 0 < __v._M_value; } [[nodiscard]] friend constexpr bool operator> (__cmp_cat::__unspec, strong_ordering __v) noexcept { return 0 > __v._M_value; } [[nodiscard]] friend constexpr bool operator<=(__cmp_cat::__unspec, strong_ordering __v) noexcept { return 0 <= __v._M_value; } [[nodiscard]] friend constexpr bool operator>=(__cmp_cat::__unspec, strong_ordering __v) noexcept { return 0 >= __v._M_value; } [[nodiscard]] friend constexpr strong_ordering operator<=>(strong_ordering __v, __cmp_cat::__unspec) noexcept { return __v; } [[nodiscard]] friend constexpr strong_ordering operator<=>(__cmp_cat::__unspec, strong_ordering __v) noexcept { return strong_ordering(__cmp_cat::_Ord(-__v._M_value)); } }; inline constexpr strong_ordering strong_ordering::less(__cmp_cat::_Ord::less); inline constexpr strong_ordering strong_ordering::equal(__cmp_cat::_Ord::equivalent); inline constexpr strong_ordering strong_ordering::equivalent(__cmp_cat::_Ord::equivalent); inline constexpr strong_ordering strong_ordering::greater(__cmp_cat::_Ord::greater); [[nodiscard]] constexpr bool is_eq(partial_ordering __cmp) noexcept { return __cmp == 0; } [[nodiscard]] constexpr bool is_neq(partial_ordering __cmp) noexcept { return __cmp != 0; } [[nodiscard]] constexpr bool is_lt (partial_ordering __cmp) noexcept { return __cmp < 0; } [[nodiscard]] constexpr bool is_lteq(partial_ordering __cmp) noexcept { return __cmp <= 0; } [[nodiscard]] constexpr bool is_gt (partial_ordering __cmp) noexcept { return __cmp > 0; } [[nodiscard]] constexpr bool is_gteq(partial_ordering __cmp) noexcept { return __cmp >= 0; } namespace __detail { template inline constexpr unsigned __cmp_cat_id = 1; template<> inline constexpr unsigned __cmp_cat_id = 2; template<> inline constexpr unsigned __cmp_cat_id = 4; template<> inline constexpr unsigned __cmp_cat_id = 8; template constexpr auto __common_cmp_cat() { constexpr unsigned __cats = (__cmp_cat_id<_Ts> | ...); if constexpr (__cats & 1) return; else if constexpr (bool(__cats & __cmp_cat_id)) return partial_ordering::equivalent; else if constexpr (bool(__cats & __cmp_cat_id)) return weak_ordering::equivalent; else return strong_ordering::equivalent; } } template struct common_comparison_category { using type = decltype(__detail::__common_cmp_cat<_Ts...>()); }; template struct common_comparison_category<_Tp> { using type = void; }; template<> struct common_comparison_category { using type = partial_ordering; }; template<> struct common_comparison_category { using type = weak_ordering; }; template<> struct common_comparison_category { using type = strong_ordering; }; template<> struct common_comparison_category<> { using type = strong_ordering; }; template using common_comparison_category_t = typename common_comparison_category<_Ts...>::type; namespace __detail { template concept __compares_as = same_as, _Cat>; } template concept three_way_comparable = __detail::__weakly_eq_cmp_with<_Tp, _Tp> && __detail::__partially_ordered_with<_Tp, _Tp> && requires(const remove_reference_t<_Tp>& __a, const remove_reference_t<_Tp>& __b) { { __a <=> __b } -> __detail::__compares_as<_Cat>; }; template concept three_way_comparable_with = three_way_comparable<_Tp, _Cat> && three_way_comparable<_Up, _Cat> && common_reference_with&, const remove_reference_t<_Up>&> && three_way_comparable< common_reference_t&, const remove_reference_t<_Up>&>, _Cat> && __detail::__weakly_eq_cmp_with<_Tp, _Up> && __detail::__partially_ordered_with<_Tp, _Up> && requires(const remove_reference_t<_Tp>& __t, const remove_reference_t<_Up>& __u) { { __t <=> __u } -> __detail::__compares_as<_Cat>; { __u <=> __t } -> __detail::__compares_as<_Cat>; }; namespace __detail { template using __cmp3way_res_t = decltype(std::declval<_Tp>() <=> std::declval<_Up>()); template struct __cmp3way_res_impl { }; template requires requires { typename __cmp3way_res_t<__cref<_Tp>, __cref<_Up>>; } struct __cmp3way_res_impl<_Tp, _Up> { using type = __cmp3way_res_t<__cref<_Tp>, __cref<_Up>>; }; } template struct compare_three_way_result : __detail::__cmp3way_res_impl<_Tp, _Up> { }; template using compare_three_way_result_t = typename __detail::__cmp3way_res_impl<_Tp, _Up>::type; namespace __detail { template concept __3way_builtin_ptr_cmp = requires(_Tp&& __t, _Up&& __u) { static_cast<_Tp&&>(__t) <=> static_cast<_Up&&>(__u); } && convertible_to<_Tp, const volatile void*> && convertible_to<_Up, const volatile void*> && __not_overloaded_spaceship<_Tp, _Up>; } struct compare_three_way { template requires three_way_comparable_with<_Tp, _Up> constexpr auto operator() [[nodiscard]] (_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::declval<_Tp>() <=> std::declval<_Up>())) { if constexpr (__detail::__3way_builtin_ptr_cmp<_Tp, _Up>) { auto __pt = static_cast(__t); auto __pu = static_cast(__u); if (std::__is_constant_evaluated()) return __pt <=> __pu; auto __it = reinterpret_cast(__pt); auto __iu = reinterpret_cast(__pu); return __it <=> __iu; } else return static_cast<_Tp&&>(__t) <=> static_cast<_Up&&>(__u); } using is_transparent = void; }; namespace __compare { template constexpr weak_ordering __fp_weak_ordering(_Tp __e, _Tp __f) { auto __cat = [](_Tp __fp) -> int { const int __sign = __builtin_signbit(__fp) ? -1 : 1; if (__builtin_isnormal(__fp)) return (__fp == 0 ? 1 : 3) * __sign; if (__builtin_isnan(__fp)) return 5 * __sign; if (int __inf = __builtin_isinf_sign(__fp)) return 4 * __inf; return 2 * __sign; }; auto __po = __e <=> __f; if (is_lt(__po)) return weak_ordering::less; else if (is_gt(__po)) return weak_ordering::greater; else if (__po == partial_ordering::equivalent) return weak_ordering::equivalent; else { auto __isnan_sign = [](_Tp __fp) -> int { return __builtin_isnan(__fp) ? __builtin_signbit(__fp) ? -1 : 1 : 0; }; auto __ord = __isnan_sign(__e) <=> __isnan_sign(__f); if (is_eq(__ord)) return weak_ordering::equivalent; else if (is_lt(__ord)) return weak_ordering::less; else return weak_ordering::greater; } } void strong_order() = delete; template concept __adl_strong = requires(_Tp&& __t, _Up&& __u) { strong_ordering(strong_order(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u))); }; void weak_order() = delete; template concept __adl_weak = requires(_Tp&& __t, _Up&& __u) { weak_ordering(weak_order(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u))); }; void partial_order() = delete; template concept __adl_partial = requires(_Tp&& __t, _Up&& __u) { partial_ordering(partial_order(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u))); }; template concept __cmp3way = requires(_Tp&& __t, _Up&& __u, compare_three_way __c) { _Ord(__c(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u))); }; template concept __strongly_ordered = __adl_strong<_Tp, _Up> || floating_point> || __cmp3way; template concept __decayed_same_as = same_as, decay_t<_Up>>; class _Strong_order { template static constexpr bool _S_noexcept() { if constexpr (floating_point>) return true; else if constexpr (__adl_strong<_Tp, _Up>) return noexcept(strong_ordering(strong_order(std::declval<_Tp>(), std::declval<_Up>()))); else if constexpr (__cmp3way) return noexcept(compare_three_way()(std::declval<_Tp>(), std::declval<_Up>())); } friend class _Weak_order; friend class _Strong_fallback; enum class _Fp_fmt { _Binary16, _Binary32, _Binary64, _Binary128, _X86_80bit, _M68k_80bit, _Dbldbl, _Bfloat16, }; # 702 "/usr/include/c++/15/compare" 3 template static consteval _Fp_fmt _S_fp_fmt() noexcept { using enum _Fp_fmt; # 722 "/usr/include/c++/15/compare" 3 if constexpr (__is_same(_Tp, long double)) return (-16381) == -16381 ? _X86_80bit : _M68k_80bit; if constexpr (__is_same(_Tp, __float80)) return _X86_80bit; if constexpr (__is_same(_Tp, decltype(0.0bf16))) return _Bfloat16; constexpr int __width = sizeof(_Tp) * 8; if constexpr (__width == 16) return _Binary16; else if constexpr (__width == 32) return _Binary32; else if constexpr (__width == 64) return _Binary64; else if constexpr (__width == 128) return _Binary128; } using int64_t = long int; using int32_t = int; using int16_t = short int; using uint64_t = long unsigned int; using uint16_t = short unsigned int; template struct _Int { uint64_t _M_lo; _Tp _M_hi; constexpr explicit _Int(_Tp __hi, uint64_t __lo) noexcept : _M_hi(__hi) { _M_lo = __lo; } constexpr explicit _Int(uint64_t __lo) noexcept : _M_hi(0) { _M_lo = __lo; } constexpr bool operator==(const _Int&) const = default; # 784 "/usr/include/c++/15/compare" 3 constexpr _Int& operator^=(const _Int& __rhs) noexcept { _M_hi ^= __rhs._M_hi; _M_lo ^= __rhs._M_lo; return *this; } constexpr strong_ordering operator<=>(const _Int& __rhs) const noexcept { strong_ordering __cmp = _M_hi <=> __rhs._M_hi; if (__cmp != strong_ordering::equal) return __cmp; return _M_lo <=> __rhs._M_lo; } }; template static constexpr _Tp _S_compl(_Tp __t) noexcept { constexpr int __width = sizeof(_Tp) * 8; make_unsigned_t<_Tp> __sign = __t >> (__width - 1); return __t ^ (__sign >> 1); } template static constexpr _Int<_Tp> _S_compl(_Int<_Tp> __t) noexcept { constexpr int __width = sizeof(_Tp) * 8; make_unsigned_t<_Tp> __sign = __t._M_hi >> (__width - 1); __t._M_hi ^= (__sign >> 1 ); uint64_t __sign64 = (_Tp)__sign; __t._M_lo ^= __sign64; return __t; } template constexpr static auto _S_fp_bits(_Tp __val) noexcept { if constexpr (sizeof(_Tp) == sizeof(int64_t)) return __builtin_bit_cast(int64_t, __val); else if constexpr (sizeof(_Tp) == sizeof(int32_t)) return __builtin_bit_cast(int32_t, __val); else if constexpr (sizeof(_Tp) == sizeof(int16_t)) return __builtin_bit_cast(int16_t, __val); else { using enum _Fp_fmt; constexpr auto __fmt = _S_fp_fmt<_Tp>(); if constexpr (__fmt == _X86_80bit) { if constexpr (sizeof(_Tp) == 3 * sizeof(int32_t)) { auto __ival = __builtin_bit_cast(_Int, __val); return _Int(__ival._M_hi, __ival._M_lo); } else { auto __ival = __builtin_bit_cast(_Int, __val); return _Int(__ival._M_hi, __ival._M_lo); } } else if constexpr (__fmt == _M68k_80bit) { auto __ival = __builtin_bit_cast(_Int, __val); return _Int(__ival._M_hi >> 16, __ival._M_lo); } else if constexpr (sizeof(_Tp) == 2 * sizeof(int64_t)) { return __builtin_bit_cast(__int128, __val); } else static_assert(sizeof(_Tp) == sizeof(int64_t), "unsupported floating-point type"); } } template static constexpr strong_ordering _S_fp_cmp(_Tp __x, _Tp __y) noexcept { # 893 "/usr/include/c++/15/compare" 3 auto __ix = _S_fp_bits(__x); auto __iy = _S_fp_bits(__y); if (__ix == __iy) return strong_ordering::equal; using enum _Fp_fmt; constexpr auto __fmt = _S_fp_fmt<_Tp>(); if constexpr (__fmt == _Dbldbl) { struct _Unpacked { double _M_hi; int64_t _M_lo; }; auto __x2 = __builtin_bit_cast(_Unpacked, __x); auto __y2 = __builtin_bit_cast(_Unpacked, __y); auto __cmp = _S_fp_cmp(__x2._M_hi, __y2._M_hi); if (__cmp != strong_ordering::equal) return __cmp; if (__builtin_isnan(__x2._M_hi)) return strong_ordering::equal; if (((__x2._M_lo | __y2._M_lo) & 0x7fffffffffffffffULL) == 0) return strong_ordering::equal; return _S_compl(__x2._M_lo) <=> _S_compl(__y2._M_lo); } else { if constexpr (__fmt == _M68k_80bit) { constexpr uint16_t __maxexp = 0x7fff; if ((__ix._M_hi & __maxexp) == __maxexp) __ix._M_lo |= 1ull << 63; if ((__iy._M_hi & __maxexp) == __maxexp) __iy._M_lo |= 1ull << 63; } else { # 960 "/usr/include/c++/15/compare" 3 } return _S_compl(__ix) <=> _S_compl(__iy); } } public: template _Up> requires __strongly_ordered<_Tp, _Up> constexpr strong_ordering operator() [[nodiscard]] (_Tp&& __e, _Up&& __f) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (floating_point>) return _S_fp_cmp(__e, __f); else if constexpr (__adl_strong<_Tp, _Up>) return strong_ordering(strong_order(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f))); else if constexpr (__cmp3way) return compare_three_way()(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); } }; template concept __weakly_ordered = floating_point> || __adl_weak<_Tp, _Up> || __cmp3way || __strongly_ordered<_Tp, _Up>; class _Weak_order { template static constexpr bool _S_noexcept() { if constexpr (floating_point>) return true; else if constexpr (__adl_weak<_Tp, _Up>) return noexcept(weak_ordering(weak_order(std::declval<_Tp>(), std::declval<_Up>()))); else if constexpr (__cmp3way) return noexcept(compare_three_way()(std::declval<_Tp>(), std::declval<_Up>())); else if constexpr (__strongly_ordered<_Tp, _Up>) return _Strong_order::_S_noexcept<_Tp, _Up>(); } friend class _Partial_order; friend class _Weak_fallback; public: template _Up> requires __weakly_ordered<_Tp, _Up> constexpr weak_ordering operator() [[nodiscard]] (_Tp&& __e, _Up&& __f) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (floating_point>) return __compare::__fp_weak_ordering(__e, __f); else if constexpr (__adl_weak<_Tp, _Up>) return weak_ordering(weak_order(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f))); else if constexpr (__cmp3way) return compare_three_way()(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); else if constexpr (__strongly_ordered<_Tp, _Up>) return _Strong_order{}(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); } }; template concept __partially_ordered = __adl_partial<_Tp, _Up> || __cmp3way || __weakly_ordered<_Tp, _Up>; class _Partial_order { template static constexpr bool _S_noexcept() { if constexpr (__adl_partial<_Tp, _Up>) return noexcept(partial_ordering(partial_order(std::declval<_Tp>(), std::declval<_Up>()))); else if constexpr (__cmp3way) return noexcept(compare_three_way()(std::declval<_Tp>(), std::declval<_Up>())); else if constexpr (__weakly_ordered<_Tp, _Up>) return _Weak_order::_S_noexcept<_Tp, _Up>(); } friend class _Partial_fallback; public: template _Up> requires __partially_ordered<_Tp, _Up> constexpr partial_ordering operator() [[nodiscard]] (_Tp&& __e, _Up&& __f) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (__adl_partial<_Tp, _Up>) return partial_ordering(partial_order(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f))); else if constexpr (__cmp3way) return compare_three_way()(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); else if constexpr (__weakly_ordered<_Tp, _Up>) return _Weak_order{}(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); } }; template concept __op_eq_lt = requires(_Tp&& __t, _Up&& __u) { { static_cast<_Tp&&>(__t) == static_cast<_Up&&>(__u) } -> convertible_to; { static_cast<_Tp&&>(__t) < static_cast<_Up&&>(__u) } -> convertible_to; }; class _Strong_fallback { template static constexpr bool _S_noexcept() { if constexpr (__strongly_ordered<_Tp, _Up>) return _Strong_order::_S_noexcept<_Tp, _Up>(); else return noexcept(bool(std::declval<_Tp>() == std::declval<_Up>())) && noexcept(bool(std::declval<_Tp>() < std::declval<_Up>())); } public: template _Up> requires __strongly_ordered<_Tp, _Up> || __op_eq_lt<_Tp, _Up> constexpr strong_ordering operator() [[nodiscard]] (_Tp&& __e, _Up&& __f) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (__strongly_ordered<_Tp, _Up>) return _Strong_order{}(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); else return static_cast<_Tp&&>(__e) == static_cast<_Up&&>(__f) ? strong_ordering::equal : static_cast<_Tp&&>(__e) < static_cast<_Up&&>(__f) ? strong_ordering::less : strong_ordering::greater; } }; class _Weak_fallback { template static constexpr bool _S_noexcept() { if constexpr (__weakly_ordered<_Tp, _Up>) return _Weak_order::_S_noexcept<_Tp, _Up>(); else return noexcept(bool(std::declval<_Tp>() == std::declval<_Up>())) && noexcept(bool(std::declval<_Tp>() < std::declval<_Up>())); } public: template _Up> requires __weakly_ordered<_Tp, _Up> || __op_eq_lt<_Tp, _Up> constexpr weak_ordering operator() [[nodiscard]] (_Tp&& __e, _Up&& __f) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (__weakly_ordered<_Tp, _Up>) return _Weak_order{}(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); else return static_cast<_Tp&&>(__e) == static_cast<_Up&&>(__f) ? weak_ordering::equivalent : static_cast<_Tp&&>(__e) < static_cast<_Up&&>(__f) ? weak_ordering::less : weak_ordering::greater; } }; template concept __op_eq_lt_lt = __op_eq_lt<_Tp, _Up> && requires(_Tp&& __t, _Up&& __u) { { static_cast<_Up&&>(__u) < static_cast<_Tp&&>(__t) } -> convertible_to; }; class _Partial_fallback { template static constexpr bool _S_noexcept() { if constexpr (__partially_ordered<_Tp, _Up>) return _Partial_order::_S_noexcept<_Tp, _Up>(); else return noexcept(bool(std::declval<_Tp>() == std::declval<_Up>())) && noexcept(bool(std::declval<_Tp>() < std::declval<_Up>())); } public: template _Up> requires __partially_ordered<_Tp, _Up> || __op_eq_lt_lt<_Tp, _Up> constexpr partial_ordering operator() [[nodiscard]] (_Tp&& __e, _Up&& __f) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (__partially_ordered<_Tp, _Up>) return _Partial_order{}(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); else return static_cast<_Tp&&>(__e) == static_cast<_Up&&>(__f) ? partial_ordering::equivalent : static_cast<_Tp&&>(__e) < static_cast<_Up&&>(__f) ? partial_ordering::less : static_cast<_Up&&>(__f) < static_cast<_Tp&&>(__e) ? partial_ordering::greater : partial_ordering::unordered; } }; } inline namespace _Cpo { inline constexpr __compare::_Strong_order strong_order{}; inline constexpr __compare::_Weak_order weak_order{}; inline constexpr __compare::_Partial_order partial_order{}; inline constexpr __compare::_Strong_fallback compare_strong_order_fallback{}; inline constexpr __compare::_Weak_fallback compare_weak_order_fallback{}; inline constexpr __compare::_Partial_fallback compare_partial_order_fallback{}; } namespace __detail { inline constexpr struct _Synth3way { template static constexpr bool _S_noexcept(const _Tp* __t = nullptr, const _Up* __u = nullptr) { if constexpr (three_way_comparable_with<_Tp, _Up>) return noexcept(*__t <=> *__u); else return noexcept(*__t < *__u) && noexcept(*__u < *__t); } template [[nodiscard]] constexpr auto operator()(const _Tp& __t, const _Up& __u) const noexcept(_S_noexcept<_Tp, _Up>()) requires requires { { __t < __u } -> __boolean_testable; { __u < __t } -> __boolean_testable; } { if constexpr (three_way_comparable_with<_Tp, _Up>) return __t <=> __u; else { if (__t < __u) return weak_ordering::less; else if (__u < __t) return weak_ordering::greater; else return weak_ordering::equivalent; } } } __synth3way = {}; template using __synth3way_t = decltype(__detail::__synth3way(std::declval<_Tp&>(), std::declval<_Up&>())); } } #pragma GCC diagnostic pop # 66 "/usr/include/c++/15/bits/stl_pair.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 79 "/usr/include/c++/15/bits/stl_pair.h" 3 struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; inline constexpr piecewise_construct_t piecewise_construct = piecewise_construct_t(); template struct pair; template class tuple; template struct array; template struct _Index_tuple; template class complex; template constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& get(pair<_Tp1, _Tp2>& __in) noexcept; template constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& get(pair<_Tp1, _Tp2>&& __in) noexcept; template constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& get(const pair<_Tp1, _Tp2>& __in) noexcept; template constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& get(const pair<_Tp1, _Tp2>&& __in) noexcept; template constexpr __tuple_element_t<__i, tuple<_Elements...>>& get(tuple<_Elements...>& __t) noexcept; template constexpr const __tuple_element_t<__i, tuple<_Elements...>>& get(const tuple<_Elements...>& __t) noexcept; template constexpr __tuple_element_t<__i, tuple<_Elements...>>&& get(tuple<_Elements...>&& __t) noexcept; template constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& get(const tuple<_Elements...>&& __t) noexcept; template constexpr _Tp& get(array<_Tp, _Nm>&) noexcept; template constexpr _Tp&& get(array<_Tp, _Nm>&&) noexcept; template constexpr const _Tp& get(const array<_Tp, _Nm>&) noexcept; template constexpr const _Tp&& get(const array<_Tp, _Nm>&&) noexcept; # 239 "/usr/include/c++/15/bits/stl_pair.h" 3 template inline constexpr bool __is_tuple_v = false; template inline constexpr bool __is_tuple_v> = true; template inline constexpr bool __is_tuple_like_v = false; template inline constexpr bool __is_tuple_like_v> = true; template inline constexpr bool __is_tuple_like_v> = true; template inline constexpr bool __is_tuple_like_v> = true; template concept __tuple_like = __is_tuple_like_v>; template concept __pair_like = __tuple_like<_Tp> && tuple_size_v> == 2; template concept __eligible_tuple_like = __detail::__different_from<_Tp, _Tuple> && __tuple_like<_Tp> && (tuple_size_v> == tuple_size_v<_Tuple>) && !ranges::__detail::__is_subrange>; template concept __eligible_pair_like = __detail::__different_from<_Tp, _Pair> && __pair_like<_Tp> && !ranges::__detail::__is_subrange>; template class __pair_base { }; # 301 "/usr/include/c++/15/bits/stl_pair.h" 3 template struct pair : public __pair_base<_T1, _T2> { typedef _T1 first_type; typedef _T2 second_type; _T1 first; _T2 second; constexpr pair(const pair&) = default; constexpr pair(pair&&) = default; template constexpr pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>); constexpr void swap(pair& __p) noexcept(__and_<__is_nothrow_swappable<_T1>, __is_nothrow_swappable<_T2>>::value) { using std::swap; swap(first, __p.first); swap(second, __p.second); } # 337 "/usr/include/c++/15/bits/stl_pair.h" 3 constexpr void swap(const pair& __p) const noexcept(__and_v<__is_nothrow_swappable, __is_nothrow_swappable>) requires is_swappable_v && is_swappable_v { using std::swap; swap(first, __p.first); swap(second, __p.second); } private: template constexpr pair(tuple<_Args1...>&, tuple<_Args2...>&, _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); public: constexpr explicit(__not_<__and_<__is_implicitly_default_constructible<_T1>, __is_implicitly_default_constructible<_T2>>>()) pair() noexcept(is_nothrow_default_constructible_v<_T1> && is_nothrow_default_constructible_v<_T2>) requires is_default_constructible_v<_T1> && is_default_constructible_v<_T2> : first(), second() { } private: template static constexpr bool _S_constructible() { if constexpr (is_constructible_v<_T1, _U1>) return is_constructible_v<_T2, _U2>; return false; } template static constexpr bool _S_nothrow_constructible() { if constexpr (is_nothrow_constructible_v<_T1, _U1>) return is_nothrow_constructible_v<_T2, _U2>; return false; } template static constexpr bool _S_convertible() { if constexpr (is_convertible_v<_U1, _T1>) return is_convertible_v<_U2, _T2>; return false; } template static constexpr bool _S_dangles() { if constexpr (__reference_constructs_from_temporary(_T1, _U1&&)) return true; else return __reference_constructs_from_temporary(_T2, _U2&&); } template static constexpr bool _S_constructible_from_pair_like() { return _S_constructible(std::declval<_UPair>())), decltype(std::get<1>(std::declval<_UPair>()))>(); } template static constexpr bool _S_convertible_from_pair_like() { return _S_convertible(std::declval<_UPair>())), decltype(std::get<1>(std::declval<_UPair>()))>(); } template static constexpr bool _S_dangles_from_pair_like() { return _S_dangles(std::declval<_UPair>())), decltype(std::get<1>(std::declval<_UPair>()))>(); } public: constexpr explicit(!_S_convertible()) pair(const type_identity_t<_T1>& __x, const _T2& __y) noexcept(_S_nothrow_constructible()) requires (_S_constructible()) : first(__x), second(__y) { } template requires (_S_constructible<_U1, _U2>()) && (!_S_dangles<_U1, _U2>()) constexpr explicit(!_S_convertible<_U1, _U2>()) pair(_U1&& __x, _U2&& __y) noexcept(_S_nothrow_constructible<_U1, _U2>()) : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { } template requires (_S_constructible<_U1, _U2>()) && (_S_dangles<_U1, _U2>()) constexpr explicit(!_S_convertible<_U1, _U2>()) pair(_U1&&, _U2&&) = delete; template requires (_S_constructible()) && (!_S_dangles<_U1, _U2>()) constexpr explicit(!_S_convertible()) pair(const pair<_U1, _U2>& __p) noexcept(_S_nothrow_constructible()) : first(__p.first), second(__p.second) { } template requires (_S_constructible()) && (_S_dangles()) constexpr explicit(!_S_convertible()) pair(const pair<_U1, _U2>&) = delete; template requires (_S_constructible<_U1, _U2>()) && (!_S_dangles<_U1, _U2>()) constexpr explicit(!_S_convertible<_U1, _U2>()) pair(pair<_U1, _U2>&& __p) noexcept(_S_nothrow_constructible<_U1, _U2>()) : first(std::forward<_U1>(__p.first)), second(std::forward<_U2>(__p.second)) { } template requires (_S_constructible<_U1, _U2>()) && (_S_dangles<_U1, _U2>()) constexpr explicit(!_S_convertible<_U1, _U2>()) pair(pair<_U1, _U2>&&) = delete; template requires (_S_constructible<_U1&, _U2&>()) && (!_S_dangles<_U1&, _U2&>()) constexpr explicit(!_S_convertible<_U1&, _U2&>()) pair(pair<_U1, _U2>& __p) noexcept(_S_nothrow_constructible<_U1&, _U2&>()) : first(__p.first), second(__p.second) { } template requires (_S_constructible<_U1&, _U2&>()) && (_S_dangles<_U1&, _U2&>()) constexpr explicit(!_S_convertible<_U1&, _U2&>()) pair(pair<_U1, _U2>&) = delete; template requires (_S_constructible()) && (!_S_dangles()) constexpr explicit(!_S_convertible()) pair(const pair<_U1, _U2>&& __p) noexcept(_S_nothrow_constructible()) : first(std::forward(__p.first)), second(std::forward(__p.second)) { } template requires (_S_constructible()) && (_S_dangles()) constexpr explicit(!_S_convertible()) pair(const pair<_U1, _U2>&&) = delete; template<__eligible_pair_like _UPair> requires (_S_constructible_from_pair_like<_UPair>()) && (!_S_dangles_from_pair_like<_UPair>()) constexpr explicit(!_S_convertible_from_pair_like<_UPair>()) pair(_UPair&& __p) : first(std::get<0>(std::forward<_UPair>(__p))), second(std::get<1>(std::forward<_UPair>(__p))) { } template<__eligible_pair_like _UPair> requires (_S_constructible_from_pair_like<_UPair>()) && (_S_dangles_from_pair_like<_UPair>()) constexpr explicit(!_S_convertible_from_pair_like<_UPair>()) pair(_UPair&&) = delete; private: template static constexpr bool _S_assignable() { if constexpr (is_assignable_v<_T1&, _U1>) return is_assignable_v<_T2&, _U2>; return false; } template static constexpr bool _S_const_assignable() { if constexpr (is_assignable_v) return is_assignable_v; return false; } template static constexpr bool _S_nothrow_assignable() { if constexpr (is_nothrow_assignable_v<_T1&, _U1>) return is_nothrow_assignable_v<_T2&, _U2>; return false; } template static constexpr bool _S_assignable_from_tuple_like() { return _S_assignable(std::declval<_UPair>())), decltype(std::get<1>(std::declval<_UPair>()))>(); } template static constexpr bool _S_const_assignable_from_tuple_like() { return _S_const_assignable(std::declval<_UPair>())), decltype(std::get<1>(std::declval<_UPair>()))>(); } public: pair& operator=(const pair&) = delete; constexpr pair& operator=(const pair& __p) noexcept(_S_nothrow_assignable()) requires (_S_assignable()) { first = __p.first; second = __p.second; return *this; } constexpr pair& operator=(pair&& __p) noexcept(_S_nothrow_assignable<_T1, _T2>()) requires (_S_assignable<_T1, _T2>()) { first = std::forward(__p.first); second = std::forward(__p.second); return *this; } template constexpr pair& operator=(const pair<_U1, _U2>& __p) noexcept(_S_nothrow_assignable()) requires (_S_assignable()) { first = __p.first; second = __p.second; return *this; } template constexpr pair& operator=(pair<_U1, _U2>&& __p) noexcept(_S_nothrow_assignable<_U1, _U2>()) requires (_S_assignable<_U1, _U2>()) { first = std::forward<_U1>(__p.first); second = std::forward<_U2>(__p.second); return *this; } constexpr const pair& operator=(const pair& __p) const requires (_S_const_assignable()) { first = __p.first; second = __p.second; return *this; } constexpr const pair& operator=(pair&& __p) const requires (_S_const_assignable()) { first = std::forward(__p.first); second = std::forward(__p.second); return *this; } template constexpr const pair& operator=(const pair<_U1, _U2>& __p) const requires (_S_const_assignable()) { first = __p.first; second = __p.second; return *this; } template constexpr const pair& operator=(pair<_U1, _U2>&& __p) const requires (_S_const_assignable<_U1, _U2>()) { first = std::forward<_U1>(__p.first); second = std::forward<_U2>(__p.second); return *this; } template<__eligible_pair_like _UPair> requires (_S_assignable_from_tuple_like<_UPair>()) constexpr pair& operator=(_UPair&& __p) { first = std::get<0>(std::forward<_UPair>(__p)); second = std::get<1>(std::forward<_UPair>(__p)); return *this; } template<__eligible_pair_like _UPair> requires (_S_const_assignable_from_tuple_like<_UPair>()) constexpr const pair& operator=(_UPair&& __p) const { first = std::get<0>(std::forward<_UPair>(__p)); second = std::get<1>(std::forward<_UPair>(__p)); return *this; } # 1015 "/usr/include/c++/15/bits/stl_pair.h" 3 }; template pair(_T1, _T2) -> pair<_T1, _T2>; template [[nodiscard]] constexpr bool operator==(const pair<_T1, _T2>& __x, const pair<_U1, _U2>& __y) requires requires { { __x.first == __y.first } -> __detail::__boolean_testable; { __x.second == __y.second } -> __detail::__boolean_testable; } { return __x.first == __y.first && __x.second == __y.second; } # 1045 "/usr/include/c++/15/bits/stl_pair.h" 3 template [[nodiscard]] constexpr common_comparison_category_t<__detail::__synth3way_t<_T1, _U1>, __detail::__synth3way_t<_T2, _U2>> operator<=>(const pair<_T1, _T2>& __x, const pair<_U1, _U2>& __y) { if (auto __c = __detail::__synth3way(__x.first, __y.first); __c != 0) return __c; return __detail::__synth3way(__x.second, __y.second); } # 1112 "/usr/include/c++/15/bits/stl_pair.h" 3 template constexpr inline typename enable_if<__and_<__is_swappable<_T1>, __is_swappable<_T2>>::value>::type swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) noexcept(noexcept(__x.swap(__y))) { __x.swap(__y); } template requires is_swappable_v && is_swappable_v constexpr void swap(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) noexcept(noexcept(__x.swap(__y))) { __x.swap(__y); } template typename enable_if, __is_swappable<_T2>>::value>::type swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete; # 1161 "/usr/include/c++/15/bits/stl_pair.h" 3 template constexpr pair::__type, typename __decay_and_strip<_T2>::__type> make_pair(_T1&& __x, _T2&& __y) { typedef typename __decay_and_strip<_T1>::__type __ds_type1; typedef typename __decay_and_strip<_T2>::__type __ds_type2; typedef pair<__ds_type1, __ds_type2> __pair_type; return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y)); } # 1184 "/usr/include/c++/15/bits/stl_pair.h" 3 template struct __is_tuple_like_impl> : true_type { }; template struct tuple_size> : public integral_constant { }; template struct tuple_element<0, pair<_Tp1, _Tp2>> { typedef _Tp1 type; }; template struct tuple_element<1, pair<_Tp1, _Tp2>> { typedef _Tp2 type; }; template inline constexpr size_t tuple_size_v> = 2; template inline constexpr size_t tuple_size_v> = 2; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++14-extensions" #pragma GCC diagnostic ignored "-Wc++17-extensions" template inline constexpr bool __is_pair = false; template inline constexpr bool __is_pair> = true; #pragma GCC diagnostic pop template struct __pair_get; template<> struct __pair_get<0> { template static constexpr _Tp1& __get(pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.first; } template static constexpr _Tp1&& __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept { return std::forward<_Tp1>(__pair.first); } template static constexpr const _Tp1& __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.first; } template static constexpr const _Tp1&& __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept { return std::forward(__pair.first); } }; template<> struct __pair_get<1> { template static constexpr _Tp2& __get(pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.second; } template static constexpr _Tp2&& __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept { return std::forward<_Tp2>(__pair.second); } template static constexpr const _Tp2& __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.second; } template static constexpr const _Tp2&& __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept { return std::forward(__pair.second); } }; template constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& get(pair<_Tp1, _Tp2>& __in) noexcept { return __pair_get<_Int>::__get(__in); } template constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& get(pair<_Tp1, _Tp2>&& __in) noexcept { return __pair_get<_Int>::__move_get(std::move(__in)); } template constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& get(const pair<_Tp1, _Tp2>& __in) noexcept { return __pair_get<_Int>::__const_get(__in); } template constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& get(const pair<_Tp1, _Tp2>&& __in) noexcept { return __pair_get<_Int>::__const_move_get(std::move(__in)); } template constexpr _Tp& get(pair<_Tp, _Up>& __p) noexcept { return __p.first; } template constexpr const _Tp& get(const pair<_Tp, _Up>& __p) noexcept { return __p.first; } template constexpr _Tp&& get(pair<_Tp, _Up>&& __p) noexcept { return std::forward<_Tp>(__p.first); } template constexpr const _Tp&& get(const pair<_Tp, _Up>&& __p) noexcept { return std::forward(__p.first); } template constexpr _Tp& get(pair<_Up, _Tp>& __p) noexcept { return __p.second; } template constexpr const _Tp& get(const pair<_Up, _Tp>& __p) noexcept { return __p.second; } template constexpr _Tp&& get(pair<_Up, _Tp>&& __p) noexcept { return std::forward<_Tp>(__p.second); } template constexpr const _Tp&& get(const pair<_Up, _Tp>&& __p) noexcept { return std::forward(__p.second); } template class _TQual, template class _UQual> requires requires { typename pair, _UQual<_U1>>, common_reference_t<_TQual<_T2>, _UQual<_U2>>>; } struct basic_common_reference, pair<_U1, _U2>, _TQual, _UQual> { using type = pair, _UQual<_U1>>, common_reference_t<_TQual<_T2>, _UQual<_U2>>>; }; template requires requires { typename pair, common_type_t<_T2, _U2>>; } struct common_type, pair<_U1, _U2>> { using type = pair, common_type_t<_T2, _U2>>; }; } # 41 "/usr/include/c++/15/tuple" 2 3 # 1 "/usr/include/c++/15/bits/uses_allocator.h" 1 3 # 40 "/usr/include/c++/15/bits/uses_allocator.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct __erased_type { }; template using __is_erased_or_convertible = __or_, is_same<_Tp, __erased_type>>; struct allocator_arg_t { explicit allocator_arg_t() = default; }; inline constexpr allocator_arg_t allocator_arg = allocator_arg_t(); template> struct __uses_allocator_helper : false_type { }; template struct __uses_allocator_helper<_Tp, _Alloc, __void_t> : __is_erased_or_convertible<_Alloc, typename _Tp::allocator_type>::type { }; template struct uses_allocator : __uses_allocator_helper<_Tp, _Alloc>::type { }; struct __uses_alloc_base { }; struct __uses_alloc0 : __uses_alloc_base { struct _Sink { void constexpr operator=(const void*) { } } _M_a; }; template struct __uses_alloc1 : __uses_alloc_base { const _Alloc* _M_a; }; template struct __uses_alloc2 : __uses_alloc_base { const _Alloc* _M_a; }; template struct __uses_alloc; template struct __uses_alloc : __conditional_t< is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>::value, __uses_alloc1<_Alloc>, __uses_alloc2<_Alloc>> { static_assert(__or_< is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>, is_constructible<_Tp, _Args..., const _Alloc&>>::value, "construction with an allocator must be possible" " if uses_allocator is true"); }; template struct __uses_alloc : __uses_alloc0 { }; template using __uses_alloc_t = __uses_alloc::value, _Tp, _Alloc, _Args...>; template constexpr inline __uses_alloc_t<_Tp, _Alloc, _Args...> __use_alloc(const _Alloc& __a) { __uses_alloc_t<_Tp, _Alloc, _Args...> __ret; __ret._M_a = std::__addressof(__a); return __ret; } template void __use_alloc(const _Alloc&&) = delete; template inline constexpr bool uses_allocator_v = uses_allocator<_Tp, _Alloc>::value; template concept __allocator_for = (uses_allocator_v<_Ts, _Alloc> && ...); template class _Predicate, typename _Tp, typename _Alloc, typename... _Args> struct __is_uses_allocator_predicate : __conditional_t::value, __or_<_Predicate<_Tp, allocator_arg_t, _Alloc, _Args...>, _Predicate<_Tp, _Args..., _Alloc>>, _Predicate<_Tp, _Args...>> { }; template struct __is_uses_allocator_constructible : __is_uses_allocator_predicate { }; template inline constexpr bool __is_uses_allocator_constructible_v = __is_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; template struct __is_nothrow_uses_allocator_constructible : __is_uses_allocator_predicate { }; template inline constexpr bool __is_nothrow_uses_allocator_constructible_v = __is_nothrow_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; template void __uses_allocator_construct_impl(__uses_alloc0, _Tp* __ptr, _Args&&... __args) { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)...); } template void __uses_allocator_construct_impl(__uses_alloc1<_Alloc> __a, _Tp* __ptr, _Args&&... __args) { ::new ((void*)__ptr) _Tp(allocator_arg, *__a._M_a, std::forward<_Args>(__args)...); } template void __uses_allocator_construct_impl(__uses_alloc2<_Alloc> __a, _Tp* __ptr, _Args&&... __args) { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)..., *__a._M_a); } template void __uses_allocator_construct(const _Alloc& __a, _Tp* __ptr, _Args&&... __args) { std::__uses_allocator_construct_impl( std::__use_alloc<_Tp, _Alloc, _Args...>(__a), __ptr, std::forward<_Args>(__args)...); } } # 42 "/usr/include/c++/15/tuple" 2 3 # 1 "/usr/include/c++/15/bits/invoke.h" 1 3 # 44 "/usr/include/c++/15/bits/invoke.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 55 "/usr/include/c++/15/bits/invoke.h" 3 template::type> constexpr _Up&& __invfwd(typename remove_reference<_Tp>::type& __t) noexcept { return static_cast<_Up&&>(__t); } template constexpr _Res __invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args) { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } template constexpr _Res __invoke_impl(__invoke_memfun_ref, _MemFun&& __f, _Tp&& __t, _Args&&... __args) { return (__invfwd<_Tp>(__t).*__f)(std::forward<_Args>(__args)...); } template constexpr _Res __invoke_impl(__invoke_memfun_deref, _MemFun&& __f, _Tp&& __t, _Args&&... __args) { return ((*std::forward<_Tp>(__t)).*__f)(std::forward<_Args>(__args)...); } template constexpr _Res __invoke_impl(__invoke_memobj_ref, _MemPtr&& __f, _Tp&& __t) { return __invfwd<_Tp>(__t).*__f; } template constexpr _Res __invoke_impl(__invoke_memobj_deref, _MemPtr&& __f, _Tp&& __t) { return (*std::forward<_Tp>(__t)).*__f; } template constexpr typename __invoke_result<_Callable, _Args...>::type __invoke(_Callable&& __fn, _Args&&... __args) noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) { using __result = __invoke_result<_Callable, _Args...>; using __type = typename __result::type; using __tag = typename __result::__invoke_type; return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), std::forward<_Args>(__args)...); } template constexpr enable_if_t, _Res> __invoke_r(_Callable&& __fn, _Args&&... __args) noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) { using __result = __invoke_result<_Callable, _Args...>; using __type = typename __result::type; using __tag = typename __result::__invoke_type; if constexpr (is_void_v<_Res>) std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), std::forward<_Args>(__args)...); else return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), std::forward<_Args>(__args)...); } # 157 "/usr/include/c++/15/bits/invoke.h" 3 } # 44 "/usr/include/c++/15/tuple" 2 3 # 1 "/usr/include/c++/15/bits/ranges_util.h" 1 3 # 34 "/usr/include/c++/15/bits/ranges_util.h" 3 # 1 "/usr/include/c++/15/bits/ranges_base.h" 1 3 # 38 "/usr/include/c++/15/bits/ranges_base.h" 3 # 1 "/usr/include/c++/15/initializer_list" 1 3 # 43 "/usr/include/c++/15/initializer_list" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template class initializer_list { public: typedef _E value_type; typedef const _E& reference; typedef const _E& const_reference; typedef size_t size_type; typedef const _E* iterator; typedef const _E* const_iterator; private: iterator _M_array; size_type _M_len; constexpr initializer_list(const_iterator __a, size_type __l) : _M_array(__a), _M_len(__l) { } public: constexpr initializer_list() noexcept : _M_array(0), _M_len(0) { } constexpr size_type size() const noexcept { return _M_len; } constexpr const_iterator begin() const noexcept { return _M_array; } constexpr const_iterator end() const noexcept { return begin() + size(); } }; template constexpr const _Tp* begin(initializer_list<_Tp> __ils) noexcept { return __ils.begin(); } template constexpr const _Tp* end(initializer_list<_Tp> __ils) noexcept { return __ils.end(); } } # 39 "/usr/include/c++/15/bits/ranges_base.h" 2 3 # 1 "/usr/include/c++/15/bits/stl_iterator.h" 1 3 # 63 "/usr/include/c++/15/bits/stl_iterator.h" 3 # 1 "/usr/include/c++/15/bits/cpp_type_traits.h" 1 3 # 40 "/usr/include/c++/15/bits/cpp_type_traits.h" 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 41 "/usr/include/c++/15/bits/cpp_type_traits.h" 2 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wlong-long" # 76 "/usr/include/c++/15/bits/cpp_type_traits.h" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { struct __true_type { }; struct __false_type { }; template struct __truth_type { typedef __false_type __type; }; template<> struct __truth_type { typedef __true_type __type; }; template struct __traitor { enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; typedef typename __truth_type<__value>::__type __type; }; template struct __are_same { enum { __value = 0 }; typedef __false_type __type; }; template struct __are_same<_Tp, _Tp> { enum { __value = 1 }; typedef __true_type __type; }; template struct __is_integer { enum { __value = 0 }; typedef __false_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; # 264 "/usr/include/c++/15/bits/cpp_type_traits.h" 3 __extension__ template<> struct __is_integer<__int128> { enum { __value = 1 }; typedef __true_type __type; }; __extension__ template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; # 281 "/usr/include/c++/15/bits/cpp_type_traits.h" 3 template struct __is_floating { enum { __value = 0 }; typedef __false_type __type; }; template<> struct __is_floating { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_floating { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_floating { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_floating<_Float16> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_floating<_Float32> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_floating<_Float64> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_floating<_Float128> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_floating<__gnu_cxx::__bfloat16_t> { enum { __value = 1 }; typedef __true_type __type; }; template struct __is_arithmetic : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > { }; template struct __is_char { enum { __value = 0 }; typedef __false_type __type; }; template<> struct __is_char { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_char { enum { __value = 1 }; typedef __true_type __type; }; template struct __is_byte { enum { __value = 0 }; typedef __false_type __type; }; template<> struct __is_byte { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_byte { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_byte { enum { __value = 1 }; typedef __true_type __type; }; enum class byte : unsigned char; template<> struct __is_byte { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_byte { enum { __value = 1 }; typedef __true_type __type; }; template struct __is_nonvolatile_trivially_copyable { enum { __value = __is_trivially_copyable(_Tp) }; }; template struct __is_nonvolatile_trivially_copyable { enum { __value = 0 }; }; template struct __memcpyable { enum { __value = 0 }; }; template struct __memcpyable<_Tp*, _Tp*> : __is_nonvolatile_trivially_copyable<_Tp> { }; template struct __memcpyable<_Tp*, const _Tp*> : __is_nonvolatile_trivially_copyable<_Tp> { }; template struct __memcpyable_integer; template struct __memcpyable<_Tp*, _Up*> { enum { __value = __memcpyable_integer<_Tp>::__width != 0 && ((int)__memcpyable_integer<_Tp>::__width == (int)__memcpyable_integer<_Up>::__width) }; }; template struct __memcpyable<_Tp*, const _Up*> : __memcpyable<_Tp*, _Up*> { }; template struct __memcpyable_integer { enum { __width = __is_integer<_Tp>::__value ? (sizeof(_Tp) * 8) : 0 }; }; template struct __memcpyable_integer { enum { __width = 0 }; }; template<> struct __memcpyable_integer { enum { __width = 0 }; }; # 574 "/usr/include/c++/15/bits/cpp_type_traits.h" 3 template<> struct __memcpyable<_Float32*, float*> { enum { __value = true }; }; template<> struct __memcpyable { enum { __value = true }; }; template<> struct __memcpyable<_Float64*, double*> { enum { __value = true }; }; template<> struct __memcpyable { enum { __value = true }; }; # 599 "/usr/include/c++/15/bits/cpp_type_traits.h" 3 template struct __memcmpable { enum { __value = 0 }; }; template struct __memcmpable<_Tp*, _Tp*> : __is_nonvolatile_trivially_copyable<_Tp> { }; template struct __memcmpable : __is_nonvolatile_trivially_copyable<_Tp> { }; template struct __memcmpable<_Tp*, const _Tp*> : __is_nonvolatile_trivially_copyable<_Tp> { }; template::__value > struct __is_memcmp_ordered { static const bool __value = _Tp(-1) > _Tp(1); }; template struct __is_memcmp_ordered<_Tp, false> { static const bool __value = false; }; template struct __is_memcmp_ordered_with { static const bool __value = __is_memcmp_ordered<_Tp>::__value && __is_memcmp_ordered<_Up>::__value; }; template struct __is_memcmp_ordered_with<_Tp, _Up, false> { static const bool __value = false; }; # 668 "/usr/include/c++/15/bits/cpp_type_traits.h" 3 template<> struct __is_memcmp_ordered_with { static constexpr bool __value = true; }; template struct __is_memcmp_ordered_with<_Tp, std::byte, _SameSize> { static constexpr bool __value = false; }; template struct __is_memcmp_ordered_with { static constexpr bool __value = false; }; template constexpr bool __can_use_memchr_for_find = __is_byte<_ValT>::__value && (is_same_v<_Tp, _ValT> || is_integral_v<_Tp>); template struct __is_move_iterator { enum { __value = 0 }; typedef __false_type __type; }; template constexpr inline _Iterator __miter_base(_Iterator __it) { return __it; } } } #pragma GCC diagnostic pop # 64 "/usr/include/c++/15/bits/stl_iterator.h" 2 3 # 1 "/usr/include/c++/15/bits/stl_iterator_base_types.h" 1 3 # 73 "/usr/include/c++/15/bits/stl_iterator_base_types.h" 3 # 1 "/usr/include/c++/15/bits/iterator_concepts.h" 1 3 # 39 "/usr/include/c++/15/bits/iterator_concepts.h" 3 # 1 "/usr/include/c++/15/bits/ptr_traits.h" 1 3 # 39 "/usr/include/c++/15/bits/ptr_traits.h" 3 namespace __gnu_debug { struct _Safe_iterator_base; } namespace std __attribute__ ((__visibility__ ("default"))) { class __undefined; template struct __get_first_arg { using type = __undefined; }; template class _SomeTemplate, typename _Tp, typename... _Types> struct __get_first_arg<_SomeTemplate<_Tp, _Types...>> { using type = _Tp; }; template struct __replace_first_arg { }; template class _SomeTemplate, typename _Up, typename _Tp, typename... _Types> struct __replace_first_arg<_SomeTemplate<_Tp, _Types...>, _Up> { using type = _SomeTemplate<_Up, _Types...>; }; template struct __ptr_traits_elem : __get_first_arg<_Ptr> { }; template requires requires { typename _Ptr::element_type; } struct __ptr_traits_elem<_Ptr, void> { using type = typename _Ptr::element_type; }; template using __ptr_traits_elem_t = typename __ptr_traits_elem<_Ptr>::type; template::value> struct __ptr_traits_ptr_to { using pointer = _Ptr; using element_type = _Elt; static pointer pointer_to(element_type& __r) requires requires { { pointer::pointer_to(__r) } -> convertible_to; } { return pointer::pointer_to(__r); } }; template struct __ptr_traits_ptr_to<_Ptr, _Elt, true> { }; template struct __ptr_traits_ptr_to<_Tp*, _Tp, false> { using pointer = _Tp*; using element_type = _Tp; static constexpr pointer pointer_to(element_type& __r) noexcept { return std::addressof(__r); } }; template struct __ptr_traits_impl : __ptr_traits_ptr_to<_Ptr, _Elt> { private: template using __diff_t = typename _Tp::difference_type; template using __rebind = __type_identity>; public: using pointer = _Ptr; using element_type = _Elt; using difference_type = __detected_or_t; template using rebind = typename __detected_or_t<__replace_first_arg<_Ptr, _Up>, __rebind, _Ptr, _Up>::type; }; template struct __ptr_traits_impl<_Ptr, __undefined> { }; template struct pointer_traits : __ptr_traits_impl<_Ptr, __ptr_traits_elem_t<_Ptr>> { }; template struct pointer_traits<_Tp*> : __ptr_traits_ptr_to<_Tp*, _Tp> { typedef _Tp* pointer; typedef _Tp element_type; typedef ptrdiff_t difference_type; template using rebind = _Up*; }; template using __ptr_rebind = typename pointer_traits<_Ptr>::template rebind<_Tp>; # 229 "/usr/include/c++/15/bits/ptr_traits.h" 3 template [[__gnu__::__always_inline__]] constexpr _Tp* to_address(_Tp* __ptr) noexcept { static_assert(!is_function_v<_Tp>, "std::to_address argument " "must not be a function pointer"); return __ptr; } # 246 "/usr/include/c++/15/bits/ptr_traits.h" 3 template constexpr auto to_address(const _Ptr& __ptr) noexcept { if constexpr (requires { pointer_traits<_Ptr>::to_address(__ptr); }) return pointer_traits<_Ptr>::to_address(__ptr); else if constexpr (is_base_of_v<__gnu_debug::_Safe_iterator_base, _Ptr>) return std::to_address(__ptr.base().operator->()); else return std::to_address(__ptr.operator->()); } template [[__gnu__::__always_inline__]] constexpr auto __to_address(const _Ptr& __ptr) noexcept { return std::to_address(__ptr); } } # 40 "/usr/include/c++/15/bits/iterator_concepts.h" 2 3 # 1 "/usr/include/c++/15/bits/ranges_cmp.h" 1 3 # 37 "/usr/include/c++/15/bits/ranges_cmp.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct __is_transparent; struct identity { template [[nodiscard]] constexpr _Tp&& operator()(_Tp&& __t) const noexcept { return std::forward<_Tp>(__t); } using is_transparent = __is_transparent; }; namespace ranges { namespace __detail { template concept __less_builtin_ptr_cmp = requires (_Tp&& __t, _Up&& __u) { { __t < __u } -> same_as; } && convertible_to<_Tp, const volatile void*> && convertible_to<_Up, const volatile void*> && ! requires(_Tp&& __t, _Up&& __u) { operator<(std::forward<_Tp>(__t), std::forward<_Up>(__u)); } && ! requires(_Tp&& __t, _Up&& __u) { std::forward<_Tp>(__t).operator<(std::forward<_Up>(__u)); } && std::__detail::__not_overloaded_spaceship<_Tp, _Up>; } struct equal_to { template requires equality_comparable_with<_Tp, _Up> constexpr bool operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::declval<_Tp>() == std::declval<_Up>())) { return std::forward<_Tp>(__t) == std::forward<_Up>(__u); } using is_transparent = __is_transparent; }; struct not_equal_to { template requires equality_comparable_with<_Tp, _Up> constexpr bool operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::declval<_Tp>() == std::declval<_Up>())) { return !equal_to{}(std::forward<_Tp>(__t), std::forward<_Up>(__u)); } using is_transparent = __is_transparent; }; struct less { template requires totally_ordered_with<_Tp, _Up> constexpr bool operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::declval<_Tp>() < std::declval<_Up>())) { if constexpr (__detail::__less_builtin_ptr_cmp<_Tp, _Up>) { if (std::__is_constant_evaluated()) return __t < __u; auto __x = reinterpret_cast( static_cast(std::forward<_Tp>(__t))); auto __y = reinterpret_cast( static_cast(std::forward<_Up>(__u))); return __x < __y; } else return std::forward<_Tp>(__t) < std::forward<_Up>(__u); } using is_transparent = __is_transparent; }; struct greater { template requires totally_ordered_with<_Tp, _Up> constexpr bool operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::declval<_Up>() < std::declval<_Tp>())) { return less{}(std::forward<_Up>(__u), std::forward<_Tp>(__t)); } using is_transparent = __is_transparent; }; struct greater_equal { template requires totally_ordered_with<_Tp, _Up> constexpr bool operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::declval<_Tp>() < std::declval<_Up>())) { return !less{}(std::forward<_Tp>(__t), std::forward<_Up>(__u)); } using is_transparent = __is_transparent; }; struct less_equal { template requires totally_ordered_with<_Tp, _Up> constexpr bool operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::declval<_Up>() < std::declval<_Tp>())) { return !less{}(std::forward<_Up>(__u), std::forward<_Tp>(__t)); } using is_transparent = __is_transparent; }; } } # 41 "/usr/include/c++/15/bits/iterator_concepts.h" 2 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" namespace std __attribute__ ((__visibility__ ("default"))) { # 63 "/usr/include/c++/15/bits/iterator_concepts.h" 3 struct default_sentinel_t { }; inline constexpr default_sentinel_t default_sentinel{}; struct input_iterator_tag; struct output_iterator_tag; struct forward_iterator_tag; struct bidirectional_iterator_tag; struct random_access_iterator_tag; struct contiguous_iterator_tag; template struct iterator_traits; template requires is_object_v<_Tp> struct iterator_traits<_Tp*>; template struct __iterator_traits; namespace __detail { template using __with_ref = _Tp&; template concept __can_reference = requires { typename __with_ref<_Tp>; }; template concept __dereferenceable = requires(_Tp& __t) { { *__t } -> __can_reference; }; } template<__detail::__dereferenceable _Tp> using iter_reference_t = decltype(*std::declval<_Tp&>()); namespace ranges { namespace __imove { void iter_move() = delete; template concept __adl_imove = (std::__detail::__class_or_enum>) && requires(_Tp&& __t) { iter_move(static_cast<_Tp&&>(__t)); }; struct _IterMove { private: template using __iter_ref_t = decltype(*std::declval<_Tp>()); template struct __result { using type = __iter_ref_t<_Tp>; }; template requires __adl_imove<_Tp> struct __result<_Tp> { using type = decltype(iter_move(std::declval<_Tp>())); }; template requires (!__adl_imove<_Tp>) && is_lvalue_reference_v<__iter_ref_t<_Tp>> struct __result<_Tp> { using type = decltype(std::declval>>()); }; template static constexpr bool _S_noexcept() { if constexpr (__adl_imove<_Tp>) return noexcept(iter_move(std::declval<_Tp>())); else return noexcept(*std::declval<_Tp>()); } public: template using __type = typename __result<_Tp>::type; template requires __adl_imove<_Tp> || requires { typename __iter_ref_t<_Tp>; } [[nodiscard]] constexpr __type<_Tp> operator()(_Tp&& __e) const noexcept(_S_noexcept<_Tp>()) { if constexpr (__adl_imove<_Tp>) return iter_move(static_cast<_Tp&&>(__e)); else if constexpr (is_lvalue_reference_v<__iter_ref_t<_Tp>>) return std::move(*static_cast<_Tp&&>(__e)); else return *static_cast<_Tp&&>(__e); } }; } inline namespace _Cpo { inline constexpr __imove::_IterMove iter_move{}; } } template<__detail::__dereferenceable _Tp> requires __detail::__can_reference> using iter_rvalue_reference_t = ranges::__imove::_IterMove::__type<_Tp&>; template struct incrementable_traits { }; template requires is_object_v<_Tp> struct incrementable_traits<_Tp*> { using difference_type = ptrdiff_t; }; template struct incrementable_traits : incrementable_traits<_Iter> { }; template requires requires { typename _Tp::difference_type; } struct incrementable_traits<_Tp> { using difference_type = typename _Tp::difference_type; }; template requires (!requires { typename _Tp::difference_type; } && requires(const _Tp& __a, const _Tp& __b) { { __a - __b } -> integral; }) struct incrementable_traits<_Tp> { using difference_type = make_signed_t() - std::declval<_Tp>())>; }; # 228 "/usr/include/c++/15/bits/iterator_concepts.h" 3 namespace __detail { template concept __primary_traits_iter = __is_base_of(__iterator_traits<_Iter, void>, iterator_traits<_Iter>); template struct __iter_traits_impl { using type = iterator_traits<_Iter>; }; template requires __primary_traits_iter<_Iter> struct __iter_traits_impl<_Iter, _Tp> { using type = _Tp; }; template using __iter_traits = typename __iter_traits_impl<_Iter, _Tp>::type; template using __iter_diff_t = typename __iter_traits<_Tp, incrementable_traits<_Tp>>::difference_type; } template using iter_difference_t = __detail::__iter_diff_t>; namespace __detail { template struct __cond_value_type { }; template requires is_object_v<_Tp> struct __cond_value_type<_Tp> { using value_type = remove_cv_t<_Tp>; }; template concept __has_member_value_type = requires { typename _Tp::value_type; }; template concept __has_member_element_type = requires { typename _Tp::element_type; }; } template struct indirectly_readable_traits { }; template struct indirectly_readable_traits<_Tp*> : __detail::__cond_value_type<_Tp> { }; template requires is_array_v<_Iter> struct indirectly_readable_traits<_Iter> { using value_type = remove_cv_t>; }; template struct indirectly_readable_traits : indirectly_readable_traits<_Iter> { }; template<__detail::__has_member_value_type _Tp> struct indirectly_readable_traits<_Tp> : __detail::__cond_value_type { }; template<__detail::__has_member_element_type _Tp> struct indirectly_readable_traits<_Tp> : __detail::__cond_value_type { }; template<__detail::__has_member_value_type _Tp> requires __detail::__has_member_element_type<_Tp> && same_as, remove_cv_t> struct indirectly_readable_traits<_Tp> : __detail::__cond_value_type { }; template<__detail::__has_member_value_type _Tp> requires __detail::__has_member_element_type<_Tp> struct indirectly_readable_traits<_Tp> { }; namespace __detail { template using __iter_value_t = typename __iter_traits<_Tp, indirectly_readable_traits<_Tp>>::value_type; } template using iter_value_t = __detail::__iter_value_t>; namespace __detail { template concept __cpp17_iterator = requires(_Iter __it) { { *__it } -> __can_reference; { ++__it } -> same_as<_Iter&>; { *__it++ } -> __can_reference; } && copyable<_Iter>; template concept __cpp17_input_iterator = __cpp17_iterator<_Iter> && equality_comparable<_Iter> && requires(_Iter __it) { typename incrementable_traits<_Iter>::difference_type; typename indirectly_readable_traits<_Iter>::value_type; typename common_reference_t&&, typename indirectly_readable_traits<_Iter>::value_type&>; typename common_reference_t::value_type&>; requires signed_integral< typename incrementable_traits<_Iter>::difference_type>; }; template concept __cpp17_fwd_iterator = __cpp17_input_iterator<_Iter> && constructible_from<_Iter> && is_reference_v> && same_as>, typename indirectly_readable_traits<_Iter>::value_type> && requires(_Iter __it) { { __it++ } -> convertible_to; { *__it++ } -> same_as>; }; template concept __cpp17_bidi_iterator = __cpp17_fwd_iterator<_Iter> && requires(_Iter __it) { { --__it } -> same_as<_Iter&>; { __it-- } -> convertible_to; { *__it-- } -> same_as>; }; template concept __cpp17_randacc_iterator = __cpp17_bidi_iterator<_Iter> && totally_ordered<_Iter> && requires(_Iter __it, typename incrementable_traits<_Iter>::difference_type __n) { { __it += __n } -> same_as<_Iter&>; { __it -= __n } -> same_as<_Iter&>; { __it + __n } -> same_as<_Iter>; { __n + __it } -> same_as<_Iter>; { __it - __n } -> same_as<_Iter>; { __it - __it } -> same_as; { __it[__n] } -> convertible_to>; }; template concept __iter_with_nested_types = requires { typename _Iter::iterator_category; typename _Iter::value_type; typename _Iter::difference_type; typename _Iter::reference; }; template concept __iter_without_nested_types = !__iter_with_nested_types<_Iter>; template concept __iter_without_category = !requires { typename _Iter::iterator_category; }; } template requires __detail::__iter_with_nested_types<_Iterator> struct __iterator_traits<_Iterator, void> { private: template struct __ptr { using type = void; }; template requires requires { typename _Iter::pointer; } struct __ptr<_Iter> { using type = typename _Iter::pointer; }; public: using iterator_category = typename _Iterator::iterator_category; using value_type = typename _Iterator::value_type; using difference_type = typename _Iterator::difference_type; using pointer = typename __ptr<_Iterator>::type; using reference = typename _Iterator::reference; }; template requires __detail::__iter_without_nested_types<_Iterator> && __detail::__cpp17_input_iterator<_Iterator> struct __iterator_traits<_Iterator, void> { private: template struct __cat { using type = input_iterator_tag; }; template requires requires { typename _Iter::iterator_category; } struct __cat<_Iter> { using type = typename _Iter::iterator_category; }; template requires __detail::__iter_without_category<_Iter> && __detail::__cpp17_randacc_iterator<_Iter> struct __cat<_Iter> { using type = random_access_iterator_tag; }; template requires __detail::__iter_without_category<_Iter> && __detail::__cpp17_bidi_iterator<_Iter> struct __cat<_Iter> { using type = bidirectional_iterator_tag; }; template requires __detail::__iter_without_category<_Iter> && __detail::__cpp17_fwd_iterator<_Iter> struct __cat<_Iter> { using type = forward_iterator_tag; }; template struct __ptr { using type = void; }; template requires requires { typename _Iter::pointer; } struct __ptr<_Iter> { using type = typename _Iter::pointer; }; template requires (!requires { typename _Iter::pointer; } && requires(_Iter& __it) { __it.operator->(); }) struct __ptr<_Iter> { using type = decltype(std::declval<_Iter&>().operator->()); }; template struct __ref { using type = iter_reference_t<_Iter>; }; template requires requires { typename _Iter::reference; } struct __ref<_Iter> { using type = typename _Iter::reference; }; public: using iterator_category = typename __cat<_Iterator>::type; using value_type = typename indirectly_readable_traits<_Iterator>::value_type; using difference_type = typename incrementable_traits<_Iterator>::difference_type; using pointer = typename __ptr<_Iterator>::type; using reference = typename __ref<_Iterator>::type; }; template requires __detail::__iter_without_nested_types<_Iterator> && __detail::__cpp17_iterator<_Iterator> struct __iterator_traits<_Iterator, void> { private: template struct __diff { using type = void; }; template requires requires { typename incrementable_traits<_Iter>::difference_type; } struct __diff<_Iter> { using type = typename incrementable_traits<_Iter>::difference_type; }; public: using iterator_category = output_iterator_tag; using value_type = void; using difference_type = typename __diff<_Iterator>::type; using pointer = void; using reference = void; }; namespace __detail { template struct __iter_concept_impl; template requires requires { typename __iter_traits<_Iter>::iterator_concept; } struct __iter_concept_impl<_Iter> { using type = typename __iter_traits<_Iter>::iterator_concept; }; template requires (!requires { typename __iter_traits<_Iter>::iterator_concept; } && requires { typename __iter_traits<_Iter>::iterator_category; }) struct __iter_concept_impl<_Iter> { using type = typename __iter_traits<_Iter>::iterator_category; }; template requires (!requires { typename __iter_traits<_Iter>::iterator_concept; } && !requires { typename __iter_traits<_Iter>::iterator_category; } && __primary_traits_iter<_Iter>) struct __iter_concept_impl<_Iter> { using type = random_access_iterator_tag; }; template struct __iter_concept_impl { }; template using __iter_concept = typename __iter_concept_impl<_Iter>::type; template concept __indirectly_readable_impl = requires { typename iter_value_t<_In>; typename iter_reference_t<_In>; typename iter_rvalue_reference_t<_In>; requires same_as, iter_reference_t<_In>>; requires same_as, iter_rvalue_reference_t<_In>>; } && common_reference_with&&, iter_value_t<_In>&> && common_reference_with&&, iter_rvalue_reference_t<_In>&&> && common_reference_with&&, const iter_value_t<_In>&>; } template concept indirectly_readable = __detail::__indirectly_readable_impl>; namespace __detail { template struct __indirect_value { using type = iter_value_t<_Tp>&; }; } template using __indirect_value_t = typename __detail::__indirect_value<_Tp>::type; template using iter_common_reference_t = common_reference_t, __indirect_value_t<_Tp>>; template concept indirectly_writable = requires(_Out&& __o, _Tp&& __t) { *__o = std::forward<_Tp>(__t); *std::forward<_Out>(__o) = std::forward<_Tp>(__t); const_cast&&>(*__o) = std::forward<_Tp>(__t); const_cast&&>(*std::forward<_Out>(__o)) = std::forward<_Tp>(__t); }; namespace ranges::__detail { class __max_diff_type; class __max_size_type; __extension__ template concept __is_signed_int128 = same_as<_Tp, __int128>; __extension__ template concept __is_unsigned_int128 = same_as<_Tp, unsigned __int128>; template concept __cv_bool = same_as; template concept __integral_nonbool = integral<_Tp> && !__cv_bool<_Tp>; template concept __is_int128 = __is_signed_int128<_Tp> || __is_unsigned_int128<_Tp>; template concept __is_integer_like = __integral_nonbool<_Tp> || __is_int128<_Tp> || same_as<_Tp, __max_diff_type> || same_as<_Tp, __max_size_type>; template concept __is_signed_integer_like = signed_integral<_Tp> || __is_signed_int128<_Tp> || same_as<_Tp, __max_diff_type>; } namespace __detail { using ranges::__detail::__is_signed_integer_like; } template concept weakly_incrementable = movable<_Iter> && requires(_Iter __i) { typename iter_difference_t<_Iter>; requires __detail::__is_signed_integer_like>; { ++__i } -> same_as<_Iter&>; __i++; }; template concept incrementable = regular<_Iter> && weakly_incrementable<_Iter> && requires(_Iter __i) { { __i++ } -> same_as<_Iter>; }; template concept input_or_output_iterator = requires(_Iter __i) { { *__i } -> __detail::__can_reference; } && weakly_incrementable<_Iter>; template concept sentinel_for = semiregular<_Sent> && input_or_output_iterator<_Iter> && __detail::__weakly_eq_cmp_with<_Sent, _Iter>; template inline constexpr bool disable_sized_sentinel_for = false; template concept sized_sentinel_for = sentinel_for<_Sent, _Iter> && !disable_sized_sentinel_for, remove_cv_t<_Iter>> && requires(const _Iter& __i, const _Sent& __s) { { __s - __i } -> same_as>; { __i - __s } -> same_as>; }; template concept input_iterator = input_or_output_iterator<_Iter> && indirectly_readable<_Iter> && requires { typename __detail::__iter_concept<_Iter>; } && derived_from<__detail::__iter_concept<_Iter>, input_iterator_tag>; template concept output_iterator = input_or_output_iterator<_Iter> && indirectly_writable<_Iter, _Tp> && requires(_Iter __i, _Tp&& __t) { *__i++ = std::forward<_Tp>(__t); }; template concept forward_iterator = input_iterator<_Iter> && derived_from<__detail::__iter_concept<_Iter>, forward_iterator_tag> && incrementable<_Iter> && sentinel_for<_Iter, _Iter>; template concept bidirectional_iterator = forward_iterator<_Iter> && derived_from<__detail::__iter_concept<_Iter>, bidirectional_iterator_tag> && requires(_Iter __i) { { --__i } -> same_as<_Iter&>; { __i-- } -> same_as<_Iter>; }; template concept random_access_iterator = bidirectional_iterator<_Iter> && derived_from<__detail::__iter_concept<_Iter>, random_access_iterator_tag> && totally_ordered<_Iter> && sized_sentinel_for<_Iter, _Iter> && requires(_Iter __i, const _Iter __j, const iter_difference_t<_Iter> __n) { { __i += __n } -> same_as<_Iter&>; { __j + __n } -> same_as<_Iter>; { __n + __j } -> same_as<_Iter>; { __i -= __n } -> same_as<_Iter&>; { __j - __n } -> same_as<_Iter>; { __j[__n] } -> same_as>; }; template concept contiguous_iterator = random_access_iterator<_Iter> && derived_from<__detail::__iter_concept<_Iter>, contiguous_iterator_tag> && is_lvalue_reference_v> && same_as, remove_cvref_t>> && requires(const _Iter& __i) { { std::to_address(__i) } -> same_as>>; }; template concept indirectly_unary_invocable = indirectly_readable<_Iter> && copy_constructible<_Fn> && invocable<_Fn&, __indirect_value_t<_Iter>> && invocable<_Fn&, iter_reference_t<_Iter>> && common_reference_with>, invoke_result_t<_Fn&, iter_reference_t<_Iter>>>; template concept indirectly_regular_unary_invocable = indirectly_readable<_Iter> && copy_constructible<_Fn> && regular_invocable<_Fn&, __indirect_value_t<_Iter>> && regular_invocable<_Fn&, iter_reference_t<_Iter>> && common_reference_with>, invoke_result_t<_Fn&, iter_reference_t<_Iter>>>; template concept indirect_unary_predicate = indirectly_readable<_Iter> && copy_constructible<_Fn> && predicate<_Fn&, __indirect_value_t<_Iter>> && predicate<_Fn&, iter_reference_t<_Iter>>; template concept indirect_binary_predicate = indirectly_readable<_I1> && indirectly_readable<_I2> && copy_constructible<_Fn> && predicate<_Fn&, __indirect_value_t<_I1>, __indirect_value_t<_I2>> && predicate<_Fn&, __indirect_value_t<_I1>, iter_reference_t<_I2>> && predicate<_Fn&, iter_reference_t<_I1>, __indirect_value_t<_I2>> && predicate<_Fn&, iter_reference_t<_I1>, iter_reference_t<_I2>>; template concept indirect_equivalence_relation = indirectly_readable<_I1> && indirectly_readable<_I2> && copy_constructible<_Fn> && equivalence_relation<_Fn&, __indirect_value_t<_I1>, __indirect_value_t<_I2>> && equivalence_relation<_Fn&, __indirect_value_t<_I1>, iter_reference_t<_I2>> && equivalence_relation<_Fn&, iter_reference_t<_I1>, __indirect_value_t<_I2>> && equivalence_relation<_Fn&, iter_reference_t<_I1>, iter_reference_t<_I2>>; template concept indirect_strict_weak_order = indirectly_readable<_I1> && indirectly_readable<_I2> && copy_constructible<_Fn> && strict_weak_order<_Fn&, __indirect_value_t<_I1>, __indirect_value_t<_I2>> && strict_weak_order<_Fn&, __indirect_value_t<_I1>, iter_reference_t<_I2>> && strict_weak_order<_Fn&, iter_reference_t<_I1>, __indirect_value_t<_I2>> && strict_weak_order<_Fn&, iter_reference_t<_I1>, iter_reference_t<_I2>>; template requires (indirectly_readable<_Is> && ...) && invocable<_Fn, iter_reference_t<_Is>...> using indirect_result_t = invoke_result_t<_Fn, iter_reference_t<_Is>...>; namespace __detail { template struct __projected { struct __type { using value_type = remove_cvref_t>; indirect_result_t<_Proj&, _Iter> operator*() const; using __projected_Iter = _Iter; using __projected_Proj = _Proj; }; }; template struct __projected<_Iter, _Proj> { struct __type { using value_type = remove_cvref_t>; using difference_type = iter_difference_t<_Iter>; indirect_result_t<_Proj&, _Iter> operator*() const; using __projected_Iter = _Iter; using __projected_Proj = _Proj; }; }; } template _Proj> using projected = typename __detail::__projected<_Iter, _Proj>::__type; template requires same_as<_Tp, projected> struct __detail::__indirect_value<_Tp> { using _Iter = typename _Tp::__projected_Iter; using _Proj = typename _Tp::__projected_Proj; using type = invoke_result_t<_Proj&, __indirect_value_t<_Iter>>; }; # 861 "/usr/include/c++/15/bits/iterator_concepts.h" 3 template concept indirectly_movable = indirectly_readable<_In> && indirectly_writable<_Out, iter_rvalue_reference_t<_In>>; template concept indirectly_movable_storable = indirectly_movable<_In, _Out> && indirectly_writable<_Out, iter_value_t<_In>> && movable> && constructible_from, iter_rvalue_reference_t<_In>> && assignable_from&, iter_rvalue_reference_t<_In>>; template concept indirectly_copyable = indirectly_readable<_In> && indirectly_writable<_Out, iter_reference_t<_In>>; template concept indirectly_copyable_storable = indirectly_copyable<_In, _Out> && indirectly_writable<_Out, iter_value_t<_In>&> && indirectly_writable<_Out, const iter_value_t<_In>&> && indirectly_writable<_Out, iter_value_t<_In>&&> && indirectly_writable<_Out, const iter_value_t<_In>&&> && copyable> && constructible_from, iter_reference_t<_In>> && assignable_from&, iter_reference_t<_In>>; namespace ranges { namespace __iswap { template void iter_swap(_It1, _It2) = delete; template concept __adl_iswap = (std::__detail::__class_or_enum> || std::__detail::__class_or_enum>) && requires(_Tp&& __t, _Up&& __u) { iter_swap(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u)); }; template constexpr iter_value_t<_Xp> __iter_exchange_move(_Xp&& __x, _Yp&& __y) noexcept(noexcept(iter_value_t<_Xp>(iter_move(__x))) && noexcept(*__x = iter_move(__y))) { iter_value_t<_Xp> __old_value(iter_move(__x)); *__x = iter_move(__y); return __old_value; } struct _IterSwap { private: template static constexpr bool _S_noexcept() { if constexpr (__adl_iswap<_Tp, _Up>) return noexcept(iter_swap(std::declval<_Tp>(), std::declval<_Up>())); else if constexpr (indirectly_readable<_Tp> && indirectly_readable<_Up> && swappable_with, iter_reference_t<_Up>>) return noexcept(ranges::swap(*std::declval<_Tp>(), *std::declval<_Up>())); else return noexcept(*std::declval<_Tp>() = __iswap::__iter_exchange_move(std::declval<_Up>(), std::declval<_Tp>())); } public: template requires __adl_iswap<_Tp, _Up> || (indirectly_readable> && indirectly_readable> && swappable_with, iter_reference_t<_Up>>) || (indirectly_movable_storable<_Tp, _Up> && indirectly_movable_storable<_Up, _Tp>) constexpr void operator()(_Tp&& __e1, _Up&& __e2) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (__adl_iswap<_Tp, _Up>) iter_swap(static_cast<_Tp&&>(__e1), static_cast<_Up&&>(__e2)); else if constexpr (indirectly_readable<_Tp> && indirectly_readable<_Up> && swappable_with, iter_reference_t<_Up>>) ranges::swap(*__e1, *__e2); else *__e1 = __iswap::__iter_exchange_move(__e2, __e1); } }; } inline namespace _Cpo { inline constexpr __iswap::_IterSwap iter_swap{}; } } template concept indirectly_swappable = indirectly_readable<_I1> && indirectly_readable<_I2> && requires(const _I1 __i1, const _I2 __i2) { ranges::iter_swap(__i1, __i1); ranges::iter_swap(__i2, __i2); ranges::iter_swap(__i1, __i2); ranges::iter_swap(__i2, __i1); }; template concept indirectly_comparable = indirect_binary_predicate<_Rel, projected<_I1, _P1>, projected<_I2, _P2>>; template concept permutable = forward_iterator<_Iter> && indirectly_movable_storable<_Iter, _Iter> && indirectly_swappable<_Iter, _Iter>; template concept mergeable = input_iterator<_I1> && input_iterator<_I2> && weakly_incrementable<_Out> && indirectly_copyable<_I1, _Out> && indirectly_copyable<_I2, _Out> && indirect_strict_weak_order<_Rel, projected<_I1, _P1>, projected<_I2, _P2>>; template concept sortable = permutable<_Iter> && indirect_strict_weak_order<_Rel, projected<_Iter, _Proj>>; struct unreachable_sentinel_t { template friend constexpr bool operator==(unreachable_sentinel_t, const _It&) noexcept { return false; } }; inline constexpr unreachable_sentinel_t unreachable_sentinel{}; namespace ranges::__access { using std::__detail::__class_or_enum; struct _Decay_copy final { template constexpr decay_t<_Tp> operator()(_Tp&& __t) const noexcept(is_nothrow_convertible_v<_Tp, decay_t<_Tp>>) { return std::forward<_Tp>(__t); } } inline constexpr __decay_copy{}; template concept __member_begin = requires(_Tp& __t) { { __decay_copy(__t.begin()) } -> input_or_output_iterator; }; void begin() = delete; template concept __adl_begin = __class_or_enum> && requires(_Tp& __t) { { __decay_copy(begin(__t)) } -> input_or_output_iterator; }; template requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&> auto __begin(_Tp& __t) { if constexpr (is_array_v<_Tp>) return __t + 0; else if constexpr (__member_begin<_Tp&>) return __t.begin(); else return begin(__t); } } namespace __detail { template using __range_iter_t = decltype(ranges::__access::__begin(std::declval<_Tp&>())); } } #pragma GCC diagnostic pop # 74 "/usr/include/c++/15/bits/stl_iterator_base_types.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 95 "/usr/include/c++/15/bits/stl_iterator_base_types.h" 3 struct input_iterator_tag { }; struct output_iterator_tag { }; struct forward_iterator_tag : public input_iterator_tag { }; struct bidirectional_iterator_tag : public forward_iterator_tag { }; struct random_access_iterator_tag : public bidirectional_iterator_tag { }; struct contiguous_iterator_tag : public random_access_iterator_tag { }; # 127 "/usr/include/c++/15/bits/stl_iterator_base_types.h" 3 template struct [[__deprecated__]] iterator { typedef _Category iterator_category; typedef _Tp value_type; typedef _Distance difference_type; typedef _Pointer pointer; typedef _Reference reference; }; # 151 "/usr/include/c++/15/bits/stl_iterator_base_types.h" 3 template struct iterator_traits; template> struct __iterator_traits { }; # 178 "/usr/include/c++/15/bits/stl_iterator_base_types.h" 3 template struct iterator_traits : public __iterator_traits<_Iterator> { }; # 196 "/usr/include/c++/15/bits/stl_iterator_base_types.h" 3 template requires is_object_v<_Tp> struct iterator_traits<_Tp*> { using iterator_concept = contiguous_iterator_tag; using iterator_category = random_access_iterator_tag; using value_type = remove_cv_t<_Tp>; using difference_type = ptrdiff_t; using pointer = _Tp*; using reference = _Tp&; }; # 237 "/usr/include/c++/15/bits/stl_iterator_base_types.h" 3 template __attribute__((__always_inline__)) inline constexpr typename iterator_traits<_Iter>::iterator_category __iterator_category(const _Iter&) { return typename iterator_traits<_Iter>::iterator_category(); } template using __iter_category_t = typename iterator_traits<_Iter>::iterator_category; template using _RequireInputIter = __enable_if_t, input_iterator_tag>::value>; template concept __has_input_iter_cat = is_convertible_v<__iter_category_t<_InIter>, input_iterator_tag>; template> struct __is_random_access_iter : is_base_of { typedef is_base_of _Base; enum { __value = _Base::value }; }; } # 65 "/usr/include/c++/15/bits/stl_iterator.h" 2 3 # 1 "/usr/include/c++/15/ext/type_traits.h" 1 3 # 39 "/usr/include/c++/15/ext/type_traits.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wlong-long" extern "C++" { namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { template struct __enable_if { }; template struct __enable_if { typedef _Tp __type; }; template struct __conditional_type { typedef _Iftrue __type; }; template struct __conditional_type { typedef _Iffalse __type; }; template struct __add_unsigned { private: typedef __enable_if::__value, _Tp> __if_type; public: typedef typename __if_type::__type __type; }; template<> struct __add_unsigned { typedef unsigned char __type; }; template<> struct __add_unsigned { typedef unsigned char __type; }; template<> struct __add_unsigned { typedef unsigned short __type; }; template<> struct __add_unsigned { typedef unsigned int __type; }; template<> struct __add_unsigned { typedef unsigned long __type; }; template<> struct __add_unsigned { typedef unsigned long long __type; }; template<> struct __add_unsigned; template<> struct __add_unsigned; template struct __remove_unsigned { private: typedef __enable_if::__value, _Tp> __if_type; public: typedef typename __if_type::__type __type; }; template<> struct __remove_unsigned { typedef signed char __type; }; template<> struct __remove_unsigned { typedef signed char __type; }; template<> struct __remove_unsigned { typedef short __type; }; template<> struct __remove_unsigned { typedef int __type; }; template<> struct __remove_unsigned { typedef long __type; }; template<> struct __remove_unsigned { typedef long long __type; }; template<> struct __remove_unsigned; template<> struct __remove_unsigned; template constexpr inline bool __is_null_pointer(_Type* __ptr) { return __ptr == 0; } template constexpr inline bool __is_null_pointer(_Type) { return false; } constexpr bool __is_null_pointer(std::nullptr_t) { return true; } template::__value> struct __promote { typedef double __type; }; template struct __promote<_Tp, false> { }; template<> struct __promote { typedef long double __type; }; template<> struct __promote { typedef double __type; }; template<> struct __promote { typedef float __type; }; template<> struct __promote<_Float16> { typedef _Float16 __type; }; template<> struct __promote<_Float32> { typedef _Float32 __type; }; template<> struct __promote<_Float64> { typedef _Float64 __type; }; template<> struct __promote<_Float128> { typedef _Float128 __type; }; template<> struct __promote<__gnu_cxx::__bfloat16_t> { typedef __gnu_cxx::__bfloat16_t __type; }; template using __promoted_t = decltype((typename __promote<_Tp>::__type(0) + ...)); template using __promote_2 = __promote<__promoted_t<_Tp, _Up>>; template using __promote_3 = __promote<__promoted_t<_Tp, _Up, _Vp>>; template using __promote_4 = __promote<__promoted_t<_Tp, _Up, _Vp, _Wp>>; # 274 "/usr/include/c++/15/ext/type_traits.h" 3 } } #pragma GCC diagnostic pop # 66 "/usr/include/c++/15/bits/stl_iterator.h" 2 3 # 75 "/usr/include/c++/15/bits/stl_iterator.h" 3 # 1 "/usr/include/c++/15/new" 1 3 # 43 "/usr/include/c++/15/new" 3 # 1 "/usr/include/c++/15/bits/exception.h" 1 3 # 40 "/usr/include/c++/15/bits/exception.h" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { # 61 "/usr/include/c++/15/bits/exception.h" 3 class exception { public: exception() noexcept { } virtual ~exception() noexcept; exception(const exception&) = default; exception& operator=(const exception&) = default; exception(exception&&) = default; exception& operator=(exception&&) = default; virtual const char* what() const noexcept; }; } } # 44 "/usr/include/c++/15/new" 2 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 50 "/usr/include/c++/15/new" 2 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++11-extensions" #pragma GCC visibility push(default) extern "C++" { namespace std { class bad_alloc : public exception { public: bad_alloc() throw() { } bad_alloc(const bad_alloc&) = default; bad_alloc& operator=(const bad_alloc&) = default; virtual ~bad_alloc() throw(); virtual const char* what() const throw(); }; class bad_array_new_length : public bad_alloc { public: bad_array_new_length() throw() { } virtual ~bad_array_new_length() throw(); virtual const char* what() const throw(); }; enum class align_val_t: size_t {}; struct nothrow_t { explicit nothrow_t() = default; }; extern const nothrow_t nothrow; typedef void (*new_handler)(); new_handler set_new_handler(new_handler) throw(); new_handler get_new_handler() noexcept; } # 137 "/usr/include/c++/15/new" 3 [[__nodiscard__]] void* operator new(std::size_t) __attribute__((__externally_visible__, __malloc__)); [[__nodiscard__]] void* operator new[](std::size_t) __attribute__((__externally_visible__, __malloc__)); void operator delete(void*) noexcept __attribute__((__externally_visible__)); void operator delete[](void*) noexcept __attribute__((__externally_visible__)); void operator delete(void*, std::size_t) noexcept __attribute__((__externally_visible__)); void operator delete[](void*, std::size_t) noexcept __attribute__((__externally_visible__)); [[__nodiscard__]] void* operator new(std::size_t, const std::nothrow_t&) noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); [[__nodiscard__]] void* operator new[](std::size_t, const std::nothrow_t&) noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); void operator delete(void*, const std::nothrow_t&) noexcept __attribute__((__externally_visible__)); void operator delete[](void*, const std::nothrow_t&) noexcept __attribute__((__externally_visible__)); [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t) __attribute__((__externally_visible__, __alloc_size__ (1), __alloc_align__ (2), __malloc__)); [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __alloc_align__ (2), __malloc__)); void operator delete(void*, std::align_val_t) noexcept __attribute__((__externally_visible__)); void operator delete(void*, std::align_val_t, const std::nothrow_t&) noexcept __attribute__((__externally_visible__)); [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t) __attribute__((__externally_visible__, __alloc_size__ (1), __alloc_align__ (2), __malloc__)); [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __alloc_align__ (2), __malloc__)); void operator delete[](void*, std::align_val_t) noexcept __attribute__((__externally_visible__)); void operator delete[](void*, std::align_val_t, const std::nothrow_t&) noexcept __attribute__((__externally_visible__)); void operator delete(void*, std::size_t, std::align_val_t) noexcept __attribute__((__externally_visible__)); void operator delete[](void*, std::size_t, std::align_val_t) noexcept __attribute__((__externally_visible__)); # 205 "/usr/include/c++/15/new" 3 [[__nodiscard__]] inline void* operator new(std::size_t, void* __p) noexcept { return __p; } [[__nodiscard__]] inline void* operator new[](std::size_t, void* __p) noexcept { return __p; } inline void operator delete (void*, void*) noexcept { } inline void operator delete[](void*, void*) noexcept { } } namespace std { template [[nodiscard]] constexpr _Tp* launder(_Tp* __p) noexcept { if constexpr (__is_same(const volatile _Tp, const volatile void)) static_assert(!__is_same(const volatile _Tp, const volatile void), "std::launder argument must not be a void pointer"); else if constexpr (__is_function(_Tp)) static_assert(!__is_function(_Tp), "std::launder argument must not be a function pointer"); else return __builtin_launder(__p); return nullptr; } inline constexpr size_t hardware_destructive_interference_size = 64; inline constexpr size_t hardware_constructive_interference_size = 64; struct destroying_delete_t { explicit destroying_delete_t() = default; }; inline constexpr destroying_delete_t destroying_delete{}; } #pragma GCC visibility pop #pragma GCC diagnostic pop # 76 "/usr/include/c++/15/bits/stl_iterator.h" 2 3 # 1 "/usr/include/c++/15/bits/exception_defines.h" 1 3 # 77 "/usr/include/c++/15/bits/stl_iterator.h" 2 3 # 1 "/usr/include/c++/15/bits/stl_construct.h" 1 3 # 62 "/usr/include/c++/15/bits/stl_construct.h" 3 # 1 "/usr/include/c++/15/bits/stl_iterator_base_funcs.h" 1 3 # 66 "/usr/include/c++/15/bits/stl_iterator_base_funcs.h" 3 # 1 "/usr/include/c++/15/bits/concept_check.h" 1 3 # 39 "/usr/include/c++/15/bits/concept_check.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wvariadic-macros" # 86 "/usr/include/c++/15/bits/concept_check.h" 3 #pragma GCC diagnostic pop # 67 "/usr/include/c++/15/bits/stl_iterator_base_funcs.h" 2 3 # 1 "/usr/include/c++/15/debug/assertions.h" 1 3 # 68 "/usr/include/c++/15/bits/stl_iterator_base_funcs.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template struct _List_iterator; template struct _List_const_iterator; template inline constexpr typename iterator_traits<_InputIterator>::difference_type __distance(_InputIterator __first, _InputIterator __last, input_iterator_tag) { typename iterator_traits<_InputIterator>::difference_type __n = 0; while (__first != __last) { ++__first; ++__n; } return __n; } template __attribute__((__always_inline__)) inline constexpr typename iterator_traits<_RandomAccessIterator>::difference_type __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, random_access_iterator_tag) { return __last - __first; } template ptrdiff_t __distance(std::_List_iterator<_Tp>, std::_List_iterator<_Tp>, input_iterator_tag); template ptrdiff_t __distance(std::_List_const_iterator<_Tp>, std::_List_const_iterator<_Tp>, input_iterator_tag); template void __distance(_OutputIterator, _OutputIterator, output_iterator_tag) = delete; # 146 "/usr/include/c++/15/bits/stl_iterator_base_funcs.h" 3 template [[__nodiscard__]] __attribute__((__always_inline__)) inline constexpr typename iterator_traits<_InputIterator>::difference_type distance(_InputIterator __first, _InputIterator __last) { return std::__distance(__first, __last, std::__iterator_category(__first)); } template inline constexpr void __advance(_InputIterator& __i, _Distance __n, input_iterator_tag) { do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) std::__glibcxx_assert_fail(); } while (false); while (__n--) ++__i; } template inline constexpr void __advance(_BidirectionalIterator& __i, _Distance __n, bidirectional_iterator_tag) { if (__n > 0) while (__n--) ++__i; else while (__n++) --__i; } template inline constexpr void __advance(_RandomAccessIterator& __i, _Distance __n, random_access_iterator_tag) { if (__builtin_constant_p(__n) && __n == 1) ++__i; else if (__builtin_constant_p(__n) && __n == -1) --__i; else __i += __n; } template void __advance(_OutputIterator&, _Distance, output_iterator_tag) = delete; # 219 "/usr/include/c++/15/bits/stl_iterator_base_funcs.h" 3 template __attribute__((__always_inline__)) inline constexpr void advance(_InputIterator& __i, _Distance __n) { typename iterator_traits<_InputIterator>::difference_type __d = __n; std::__advance(__i, __d, std::__iterator_category(__i)); } template [[__nodiscard__]] [[__gnu__::__always_inline__]] inline constexpr _InputIterator next(_InputIterator __x, typename iterator_traits<_InputIterator>::difference_type __n = 1) { std::advance(__x, __n); return __x; } template [[__nodiscard__]] [[__gnu__::__always_inline__]] inline constexpr _BidirectionalIterator prev(_BidirectionalIterator __x, typename iterator_traits<_BidirectionalIterator>::difference_type __n = 1) { std::advance(__x, -__n); return __x; } } # 63 "/usr/include/c++/15/bits/stl_construct.h" 2 3 # 73 "/usr/include/c++/15/bits/stl_construct.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template constexpr inline void destroy_at(_Tp* __location) { if constexpr (202302L > 201703L && is_array_v<_Tp>) { for (auto& __x : *__location) std::destroy_at(std::__addressof(__x)); } else __location->~_Tp(); } template requires (!is_unbounded_array_v<_Tp>) && requires { ::new((void*)0) _Tp(std::declval<_Args>()...); } constexpr _Tp* construct_at(_Tp* __location, _Args&&... __args) noexcept(noexcept(::new((void*)0) _Tp(std::declval<_Args>()...))) { void* __loc = __location; if constexpr (is_array_v<_Tp>) { static_assert(sizeof...(_Args) == 0, "std::construct_at for array " "types must not use any arguments to initialize the " "array"); return ::new(__loc) _Tp[1](); } else return ::new(__loc) _Tp(std::forward<_Args>(__args)...); } # 120 "/usr/include/c++/15/bits/stl_construct.h" 3 template constexpr inline void _Construct(_Tp* __p, _Args&&... __args) { if (std::__is_constant_evaluated()) { std::construct_at(__p, std::forward<_Args>(__args)...); return; } ::new(static_cast(__p)) _Tp(std::forward<_Args>(__args)...); } # 146 "/usr/include/c++/15/bits/stl_construct.h" 3 template inline void _Construct_novalue(_T1* __p) { ::new(static_cast(__p)) _T1; } template constexpr void _Destroy(_ForwardIterator __first, _ForwardIterator __last); template constexpr inline void _Destroy(_Tp* __pointer) { std::destroy_at(__pointer); } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++17-extensions" # 217 "/usr/include/c++/15/bits/stl_construct.h" 3 template constexpr inline void _Destroy(_ForwardIterator __first, _ForwardIterator __last) { typedef typename iterator_traits<_ForwardIterator>::value_type _Value_type; if constexpr (!is_trivially_destructible<_Value_type>::value) for (; __first != __last; ++__first) std::_Destroy(std::__addressof(*__first)); else if (std::__is_constant_evaluated()) for (; __first != __last; ++__first) std::destroy_at(std::__addressof(*__first)); } template constexpr inline _ForwardIterator _Destroy_n(_ForwardIterator __first, _Size __count) { typedef typename iterator_traits<_ForwardIterator>::value_type _Value_type; if constexpr (!is_trivially_destructible<_Value_type>::value) for (; __count > 0; (void)++__first, --__count) std::_Destroy(std::__addressof(*__first)); else if (std::__is_constant_evaluated()) for (; __count > 0; (void)++__first, --__count) std::destroy_at(std::__addressof(*__first)); else std::advance(__first, __count); return __first; } #pragma GCC diagnostic pop template constexpr inline void destroy(_ForwardIterator __first, _ForwardIterator __last) { std::_Destroy(__first, __last); } template constexpr inline _ForwardIterator destroy_n(_ForwardIterator __first, _Size __count) { return std::_Destroy_n(__first, __count); } } # 79 "/usr/include/c++/15/bits/stl_iterator.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 96 "/usr/include/c++/15/bits/stl_iterator.h" 3 namespace __detail { template using __clamp_iter_cat = __conditional_t, _Limit, _Otherwise>; } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" # 130 "/usr/include/c++/15/bits/stl_iterator.h" 3 template class reverse_iterator : public iterator::iterator_category, typename iterator_traits<_Iterator>::value_type, typename iterator_traits<_Iterator>::difference_type, typename iterator_traits<_Iterator>::pointer, typename iterator_traits<_Iterator>::reference> { template friend class reverse_iterator; template static constexpr bool __convertible = !is_same_v<_Iter, _Iterator> && convertible_to; protected: _Iterator current; typedef iterator_traits<_Iterator> __traits_type; public: typedef _Iterator iterator_type; typedef typename __traits_type::pointer pointer; using iterator_concept = __conditional_t, random_access_iterator_tag, bidirectional_iterator_tag>; using iterator_category = __detail::__clamp_iter_cat; using value_type = iter_value_t<_Iterator>; using difference_type = iter_difference_t<_Iterator>; using reference = iter_reference_t<_Iterator>; # 180 "/usr/include/c++/15/bits/stl_iterator.h" 3 constexpr reverse_iterator() noexcept(noexcept(_Iterator())) : current() { } explicit constexpr reverse_iterator(iterator_type __x) noexcept(noexcept(_Iterator(__x))) : current(__x) { } constexpr reverse_iterator(const reverse_iterator& __x) noexcept(noexcept(_Iterator(__x.current))) : current(__x.current) { } reverse_iterator& operator=(const reverse_iterator&) = default; template requires __convertible<_Iter> constexpr reverse_iterator(const reverse_iterator<_Iter>& __x) noexcept(noexcept(_Iterator(__x.current))) : current(__x.current) { } template requires __convertible<_Iter> && assignable_from<_Iterator&, const _Iter&> constexpr reverse_iterator& operator=(const reverse_iterator<_Iter>& __x) noexcept(noexcept(current = __x.current)) { current = __x.current; return *this; } [[__nodiscard__]] constexpr iterator_type base() const noexcept(noexcept(_Iterator(current))) { return current; } # 257 "/usr/include/c++/15/bits/stl_iterator.h" 3 [[__nodiscard__]] constexpr reference operator*() const { _Iterator __tmp = current; return *--__tmp; } [[__nodiscard__]] constexpr pointer operator->() const requires is_pointer_v<_Iterator> || requires(const _Iterator __i) { __i.operator->(); } { _Iterator __tmp = current; --__tmp; return _S_to_pointer(__tmp); } constexpr reverse_iterator& operator++() { --current; return *this; } constexpr reverse_iterator operator++(int) { reverse_iterator __tmp = *this; --current; return __tmp; } constexpr reverse_iterator& operator--() { ++current; return *this; } constexpr reverse_iterator operator--(int) { reverse_iterator __tmp = *this; ++current; return __tmp; } [[__nodiscard__]] constexpr reverse_iterator operator+(difference_type __n) const { return reverse_iterator(current - __n); } constexpr reverse_iterator& operator+=(difference_type __n) { current -= __n; return *this; } [[__nodiscard__]] constexpr reverse_iterator operator-(difference_type __n) const { return reverse_iterator(current + __n); } constexpr reverse_iterator& operator-=(difference_type __n) { current += __n; return *this; } [[__nodiscard__]] constexpr reference operator[](difference_type __n) const { return *(*this + __n); } [[nodiscard]] friend constexpr iter_rvalue_reference_t<_Iterator> iter_move(const reverse_iterator& __i) noexcept(is_nothrow_copy_constructible_v<_Iterator> && noexcept(ranges::iter_move(--std::declval<_Iterator&>()))) { auto __tmp = __i.base(); return ranges::iter_move(--__tmp); } template _Iter2> friend constexpr void iter_swap(const reverse_iterator& __x, const reverse_iterator<_Iter2>& __y) noexcept(is_nothrow_copy_constructible_v<_Iterator> && is_nothrow_copy_constructible_v<_Iter2> && noexcept(ranges::iter_swap(--std::declval<_Iterator&>(), --std::declval<_Iter2&>()))) { auto __xtmp = __x.base(); auto __ytmp = __y.base(); ranges::iter_swap(--__xtmp, --__ytmp); } private: template static constexpr _Tp* _S_to_pointer(_Tp* __p) { return __p; } template static constexpr pointer _S_to_pointer(_Tp __t) { return __t.operator->(); } }; # 526 "/usr/include/c++/15/bits/stl_iterator.h" 3 template [[nodiscard]] constexpr bool operator==(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) requires requires { { __x.base() == __y.base() } -> convertible_to; } { return __x.base() == __y.base(); } template [[nodiscard]] constexpr bool operator!=(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) requires requires { { __x.base() != __y.base() } -> convertible_to; } { return __x.base() != __y.base(); } template [[nodiscard]] constexpr bool operator<(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) requires requires { { __x.base() > __y.base() } -> convertible_to; } { return __x.base() > __y.base(); } template [[nodiscard]] constexpr bool operator>(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) requires requires { { __x.base() < __y.base() } -> convertible_to; } { return __x.base() < __y.base(); } template [[nodiscard]] constexpr bool operator<=(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) requires requires { { __x.base() >= __y.base() } -> convertible_to; } { return __x.base() >= __y.base(); } template [[nodiscard]] constexpr bool operator>=(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) requires requires { { __x.base() <= __y.base() } -> convertible_to; } { return __x.base() <= __y.base(); } template _IteratorR> [[nodiscard]] constexpr compare_three_way_result_t<_IteratorL, _IteratorR> operator<=>(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) { return __y.base() <=> __x.base(); } template [[nodiscard]] constexpr bool operator==(const reverse_iterator<_Iterator>& __x, const reverse_iterator<_Iterator>& __y) requires requires { { __x.base() == __y.base() } -> convertible_to; } { return __x.base() == __y.base(); } template [[nodiscard]] constexpr compare_three_way_result_t<_Iterator, _Iterator> operator<=>(const reverse_iterator<_Iterator>& __x, const reverse_iterator<_Iterator>& __y) { return __y.base() <=> __x.base(); } # 617 "/usr/include/c++/15/bits/stl_iterator.h" 3 template [[__nodiscard__]] inline constexpr auto operator-(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) -> decltype(__y.base() - __x.base()) { return __y.base() - __x.base(); } template [[__nodiscard__]] inline constexpr reverse_iterator<_Iterator> operator+(typename reverse_iterator<_Iterator>::difference_type __n, const reverse_iterator<_Iterator>& __x) { return reverse_iterator<_Iterator>(__x.base() - __n); } template inline constexpr reverse_iterator<_Iterator> __make_reverse_iterator(_Iterator __i) { return reverse_iterator<_Iterator>(__i); } template [[__nodiscard__]] inline constexpr reverse_iterator<_Iterator> make_reverse_iterator(_Iterator __i) { return reverse_iterator<_Iterator>(__i); } template requires (!sized_sentinel_for<_Iterator1, _Iterator2>) inline constexpr bool disable_sized_sentinel_for, reverse_iterator<_Iterator2>> = true; template struct __is_move_iterator > : __is_move_iterator<_Iterator> { }; # 676 "/usr/include/c++/15/bits/stl_iterator.h" 3 template class back_insert_iterator : public iterator { protected: _Container* container; public: typedef _Container container_type; using difference_type = ptrdiff_t; explicit constexpr back_insert_iterator(_Container& __x) : container(std::__addressof(__x)) { } # 714 "/usr/include/c++/15/bits/stl_iterator.h" 3 constexpr back_insert_iterator& operator=(const typename _Container::value_type& __value) { container->push_back(__value); return *this; } constexpr back_insert_iterator& operator=(typename _Container::value_type&& __value) { container->push_back(std::move(__value)); return *this; } [[__nodiscard__]] constexpr back_insert_iterator& operator*() { return *this; } constexpr back_insert_iterator& operator++() { return *this; } constexpr back_insert_iterator operator++(int) { return *this; } }; # 761 "/usr/include/c++/15/bits/stl_iterator.h" 3 template [[__nodiscard__]] constexpr inline back_insert_iterator<_Container> back_inserter(_Container& __x) { return back_insert_iterator<_Container>(__x); } # 777 "/usr/include/c++/15/bits/stl_iterator.h" 3 template class front_insert_iterator : public iterator { protected: _Container* container; public: typedef _Container container_type; using difference_type = ptrdiff_t; explicit constexpr front_insert_iterator(_Container& __x) : container(std::__addressof(__x)) { } # 815 "/usr/include/c++/15/bits/stl_iterator.h" 3 constexpr front_insert_iterator& operator=(const typename _Container::value_type& __value) { container->push_front(__value); return *this; } constexpr front_insert_iterator& operator=(typename _Container::value_type&& __value) { container->push_front(std::move(__value)); return *this; } [[__nodiscard__]] constexpr front_insert_iterator& operator*() { return *this; } constexpr front_insert_iterator& operator++() { return *this; } constexpr front_insert_iterator operator++(int) { return *this; } }; # 862 "/usr/include/c++/15/bits/stl_iterator.h" 3 template [[__nodiscard__]] constexpr inline front_insert_iterator<_Container> front_inserter(_Container& __x) { return front_insert_iterator<_Container>(__x); } # 882 "/usr/include/c++/15/bits/stl_iterator.h" 3 template class insert_iterator : public iterator { using _Iter = std::__detail::__range_iter_t<_Container>; protected: _Container* container; _Iter iter; public: typedef _Container container_type; using difference_type = ptrdiff_t; constexpr insert_iterator(_Container& __x, _Iter __i) : container(std::__addressof(__x)), iter(__i) {} # 943 "/usr/include/c++/15/bits/stl_iterator.h" 3 constexpr insert_iterator& operator=(const typename _Container::value_type& __value) { iter = container->insert(iter, __value); ++iter; return *this; } constexpr insert_iterator& operator=(typename _Container::value_type&& __value) { iter = container->insert(iter, std::move(__value)); ++iter; return *this; } [[__nodiscard__]] constexpr insert_iterator& operator*() { return *this; } constexpr insert_iterator& operator++() { return *this; } constexpr insert_iterator& operator++(int) { return *this; } }; #pragma GCC diagnostic pop # 996 "/usr/include/c++/15/bits/stl_iterator.h" 3 template [[nodiscard]] constexpr insert_iterator<_Container> inserter(_Container& __x, std::__detail::__range_iter_t<_Container> __i) { return insert_iterator<_Container>(__x, __i); } # 1011 "/usr/include/c++/15/bits/stl_iterator.h" 3 } namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { # 1025 "/usr/include/c++/15/bits/stl_iterator.h" 3 template class __normal_iterator { protected: _Iterator _M_current; typedef std::iterator_traits<_Iterator> __traits_type; public: typedef _Iterator iterator_type; typedef typename __traits_type::iterator_category iterator_category; typedef typename __traits_type::value_type value_type; typedef typename __traits_type::difference_type difference_type; typedef typename __traits_type::reference reference; typedef typename __traits_type::pointer pointer; using iterator_concept = std::__detail::__iter_concept<_Iterator>; __attribute__((__always_inline__)) constexpr __normal_iterator() noexcept : _M_current() { } __attribute__((__always_inline__)) explicit constexpr __normal_iterator(const _Iterator& __i) noexcept : _M_current(__i) { } template requires std::is_convertible_v<_Iter, _Iterator> [[__gnu__::__always_inline__]] constexpr __normal_iterator(const __normal_iterator<_Iter, _Container>& __i) noexcept # 1082 "/usr/include/c++/15/bits/stl_iterator.h" 3 : _M_current(__i.base()) { } [[__nodiscard__]] __attribute__((__always_inline__)) constexpr reference operator*() const noexcept { return *_M_current; } [[__nodiscard__]] __attribute__((__always_inline__)) constexpr pointer operator->() const noexcept { return _M_current; } __attribute__((__always_inline__)) constexpr __normal_iterator& operator++() noexcept { ++_M_current; return *this; } __attribute__((__always_inline__)) constexpr __normal_iterator operator++(int) noexcept { return __normal_iterator(_M_current++); } __attribute__((__always_inline__)) constexpr __normal_iterator& operator--() noexcept { --_M_current; return *this; } __attribute__((__always_inline__)) constexpr __normal_iterator operator--(int) noexcept { return __normal_iterator(_M_current--); } [[__nodiscard__]] __attribute__((__always_inline__)) constexpr reference operator[](difference_type __n) const noexcept { return _M_current[__n]; } __attribute__((__always_inline__)) constexpr __normal_iterator& operator+=(difference_type __n) noexcept { _M_current += __n; return *this; } [[__nodiscard__]] __attribute__((__always_inline__)) constexpr __normal_iterator operator+(difference_type __n) const noexcept { return __normal_iterator(_M_current + __n); } __attribute__((__always_inline__)) constexpr __normal_iterator& operator-=(difference_type __n) noexcept { _M_current -= __n; return *this; } [[__nodiscard__]] __attribute__((__always_inline__)) constexpr __normal_iterator operator-(difference_type __n) const noexcept { return __normal_iterator(_M_current - __n); } [[__nodiscard__]] __attribute__((__always_inline__)) constexpr const _Iterator& base() const noexcept { return _M_current; } }; # 1178 "/usr/include/c++/15/bits/stl_iterator.h" 3 template [[nodiscard, __gnu__::__always_inline__]] constexpr bool operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept(noexcept(__lhs.base() == __rhs.base())) requires requires { { __lhs.base() == __rhs.base() } -> std::convertible_to; } { return __lhs.base() == __rhs.base(); } template [[nodiscard, __gnu__::__always_inline__]] constexpr std::__detail::__synth3way_t<_IteratorR, _IteratorL> operator<=>(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept(noexcept(std::__detail::__synth3way(__lhs.base(), __rhs.base()))) { return std::__detail::__synth3way(__lhs.base(), __rhs.base()); } template [[nodiscard, __gnu__::__always_inline__]] constexpr bool operator==(const __normal_iterator<_Iterator, _Container>& __lhs, const __normal_iterator<_Iterator, _Container>& __rhs) noexcept(noexcept(__lhs.base() == __rhs.base())) requires requires { { __lhs.base() == __rhs.base() } -> std::convertible_to; } { return __lhs.base() == __rhs.base(); } template [[nodiscard, __gnu__::__always_inline__]] constexpr std::__detail::__synth3way_t<_Iterator> operator<=>(const __normal_iterator<_Iterator, _Container>& __lhs, const __normal_iterator<_Iterator, _Container>& __rhs) noexcept(noexcept(std::__detail::__synth3way(__lhs.base(), __rhs.base()))) { return std::__detail::__synth3way(__lhs.base(), __rhs.base()); } # 1319 "/usr/include/c++/15/bits/stl_iterator.h" 3 template [[__nodiscard__, __gnu__::__always_inline__]] constexpr auto operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept -> decltype(__lhs.base() - __rhs.base()) { return __lhs.base() - __rhs.base(); } template [[__nodiscard__]] __attribute__((__always_inline__)) constexpr inline typename __normal_iterator<_Iterator, _Container>::difference_type operator-(const __normal_iterator<_Iterator, _Container>& __lhs, const __normal_iterator<_Iterator, _Container>& __rhs) noexcept { return __lhs.base() - __rhs.base(); } template [[__nodiscard__]] __attribute__((__always_inline__)) constexpr inline __normal_iterator<_Iterator, _Container> operator+(typename __normal_iterator<_Iterator, _Container>::difference_type __n, const __normal_iterator<_Iterator, _Container>& __i) noexcept { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } } namespace std __attribute__ ((__visibility__ ("default"))) { # 1365 "/usr/include/c++/15/bits/stl_iterator.h" 3 template class move_sentinel { public: constexpr move_sentinel() noexcept(is_nothrow_default_constructible_v<_Sent>) : _M_last() { } constexpr explicit move_sentinel(_Sent __s) noexcept(is_nothrow_move_constructible_v<_Sent>) : _M_last(std::move(__s)) { } template requires convertible_to constexpr move_sentinel(const move_sentinel<_S2>& __s) noexcept(is_nothrow_constructible_v<_Sent, const _S2&>) : _M_last(__s.base()) { } template requires assignable_from<_Sent&, const _S2&> constexpr move_sentinel& operator=(const move_sentinel<_S2>& __s) noexcept(is_nothrow_assignable_v<_Sent, const _S2&>) { _M_last = __s.base(); return *this; } [[nodiscard]] constexpr _Sent base() const noexcept(is_nothrow_copy_constructible_v<_Sent>) { return _M_last; } private: _Sent _M_last; }; namespace __detail { template struct __move_iter_cat { }; template requires requires { typename __iter_category_t<_Iterator>; } struct __move_iter_cat<_Iterator> { using iterator_category = __clamp_iter_cat<__iter_category_t<_Iterator>, random_access_iterator_tag>; }; } # 1434 "/usr/include/c++/15/bits/stl_iterator.h" 3 template class move_iterator : public __detail::__move_iter_cat<_Iterator> { _Iterator _M_current; using __traits_type = iterator_traits<_Iterator>; template friend class move_iterator; template static constexpr bool __convertible = !is_same_v<_Iter2, _Iterator> && convertible_to; static auto _S_iter_concept() { if constexpr (random_access_iterator<_Iterator>) return random_access_iterator_tag{}; else if constexpr (bidirectional_iterator<_Iterator>) return bidirectional_iterator_tag{}; else if constexpr (forward_iterator<_Iterator>) return forward_iterator_tag{}; else return input_iterator_tag{}; } public: using iterator_type = _Iterator; using iterator_concept = decltype(_S_iter_concept()); using value_type = iter_value_t<_Iterator>; using difference_type = iter_difference_t<_Iterator>; using pointer = _Iterator; using reference = iter_rvalue_reference_t<_Iterator>; # 1498 "/usr/include/c++/15/bits/stl_iterator.h" 3 constexpr move_iterator() : _M_current() { } explicit constexpr move_iterator(iterator_type __i) : _M_current(std::move(__i)) { } template requires __convertible<_Iter> constexpr move_iterator(const move_iterator<_Iter>& __i) : _M_current(__i._M_current) { } template requires __convertible<_Iter> && assignable_from<_Iterator&, const _Iter&> constexpr move_iterator& operator=(const move_iterator<_Iter>& __i) { _M_current = __i._M_current; return *this; } [[nodiscard]] constexpr const iterator_type& base() const & noexcept { return _M_current; } [[nodiscard]] constexpr iterator_type base() && { return std::move(_M_current); } [[__nodiscard__]] constexpr reference operator*() const { return ranges::iter_move(_M_current); } [[__nodiscard__]] constexpr pointer operator->() const { return _M_current; } constexpr move_iterator& operator++() { ++_M_current; return *this; } constexpr move_iterator operator++(int) { move_iterator __tmp = *this; ++_M_current; return __tmp; } constexpr void operator++(int) requires (!forward_iterator<_Iterator>) { ++_M_current; } constexpr move_iterator& operator--() { --_M_current; return *this; } constexpr move_iterator operator--(int) { move_iterator __tmp = *this; --_M_current; return __tmp; } [[__nodiscard__]] constexpr move_iterator operator+(difference_type __n) const { return move_iterator(_M_current + __n); } constexpr move_iterator& operator+=(difference_type __n) { _M_current += __n; return *this; } [[__nodiscard__]] constexpr move_iterator operator-(difference_type __n) const { return move_iterator(_M_current - __n); } constexpr move_iterator& operator-=(difference_type __n) { _M_current -= __n; return *this; } [[__nodiscard__]] constexpr reference operator[](difference_type __n) const { return ranges::iter_move(_M_current + __n); } template _Sent> [[nodiscard]] friend constexpr bool operator==(const move_iterator& __x, const move_sentinel<_Sent>& __y) { return __x.base() == __y.base(); } template _Sent> [[nodiscard]] friend constexpr iter_difference_t<_Iterator> operator-(const move_sentinel<_Sent>& __x, const move_iterator& __y) { return __x.base() - __y.base(); } template _Sent> [[nodiscard]] friend constexpr iter_difference_t<_Iterator> operator-(const move_iterator& __x, const move_sentinel<_Sent>& __y) { return __x.base() - __y.base(); } [[nodiscard]] friend constexpr iter_rvalue_reference_t<_Iterator> iter_move(const move_iterator& __i) noexcept(noexcept(ranges::iter_move(__i._M_current))) { return ranges::iter_move(__i._M_current); } template _Iter2> friend constexpr void iter_swap(const move_iterator& __x, const move_iterator<_Iter2>& __y) noexcept(noexcept(ranges::iter_swap(__x._M_current, __y._M_current))) { return ranges::iter_swap(__x._M_current, __y._M_current); } }; template [[__nodiscard__]] inline constexpr bool operator==(const move_iterator<_IteratorL>& __x, const move_iterator<_IteratorR>& __y) requires requires { { __x.base() == __y.base() } -> convertible_to; } { return __x.base() == __y.base(); } template _IteratorR> [[__nodiscard__]] constexpr compare_three_way_result_t<_IteratorL, _IteratorR> operator<=>(const move_iterator<_IteratorL>& __x, const move_iterator<_IteratorR>& __y) { return __x.base() <=> __y.base(); } # 1686 "/usr/include/c++/15/bits/stl_iterator.h" 3 template [[__nodiscard__]] inline constexpr bool operator<(const move_iterator<_IteratorL>& __x, const move_iterator<_IteratorR>& __y) requires requires { { __x.base() < __y.base() } -> convertible_to; } { return __x.base() < __y.base(); } template [[__nodiscard__]] inline constexpr bool operator<=(const move_iterator<_IteratorL>& __x, const move_iterator<_IteratorR>& __y) requires requires { { __y.base() < __x.base() } -> convertible_to; } { return !(__y < __x); } template [[__nodiscard__]] inline constexpr bool operator>(const move_iterator<_IteratorL>& __x, const move_iterator<_IteratorR>& __y) requires requires { { __y.base() < __x.base() } -> convertible_to; } { return __y < __x; } template [[__nodiscard__]] inline constexpr bool operator>=(const move_iterator<_IteratorL>& __x, const move_iterator<_IteratorR>& __y) requires requires { { __x.base() < __y.base() } -> convertible_to; } { return !(__x < __y); } template [[__nodiscard__]] inline constexpr bool operator==(const move_iterator<_Iterator>& __x, const move_iterator<_Iterator>& __y) { return __x.base() == __y.base(); } template [[__nodiscard__]] constexpr compare_three_way_result_t<_Iterator> operator<=>(const move_iterator<_Iterator>& __x, const move_iterator<_Iterator>& __y) { return __x.base() <=> __y.base(); } # 1782 "/usr/include/c++/15/bits/stl_iterator.h" 3 template [[__nodiscard__]] inline constexpr auto operator-(const move_iterator<_IteratorL>& __x, const move_iterator<_IteratorR>& __y) -> decltype(__x.base() - __y.base()) { return __x.base() - __y.base(); } template [[__nodiscard__]] inline constexpr move_iterator<_Iterator> operator+(typename move_iterator<_Iterator>::difference_type __n, const move_iterator<_Iterator>& __x) requires requires { { __x.base() + __n } -> same_as<_Iterator>; } { return __x + __n; } template [[__nodiscard__]] inline constexpr move_iterator<_Iterator> make_move_iterator(_Iterator __i) { return move_iterator<_Iterator>(std::move(__i)); } template::value_type>::value, _Iterator, move_iterator<_Iterator>>> [[__nodiscard__]] constexpr _ReturnType __make_move_if_noexcept_iterator(_Iterator __i) { return _ReturnType(__i); } template::value, const _Tp*, move_iterator<_Tp*>>> [[__nodiscard__]] constexpr _ReturnType __make_move_if_noexcept_iterator(_Tp* __i) { return _ReturnType(__i); } template struct __is_move_iterator > { enum { __value = 1 }; typedef __true_type __type; }; # 1843 "/usr/include/c++/15/bits/stl_iterator.h" 3 template requires (!sized_sentinel_for<_Iterator1, _Iterator2>) inline constexpr bool disable_sized_sentinel_for, move_iterator<_Iterator2>> = true; namespace __detail { template concept __common_iter_has_arrow = indirectly_readable && (requires(const _It& __it) { __it.operator->(); } || is_reference_v> || constructible_from, iter_reference_t<_It>>); template concept __common_iter_use_postfix_proxy = (!requires (_It& __i) { { *__i++ } -> __can_reference; }) && constructible_from, iter_reference_t<_It>> && move_constructible>; } template _Sent> requires (!same_as<_It, _Sent>) && copyable<_It> class common_iterator { template static constexpr bool _S_noexcept1() { if constexpr (is_trivially_default_constructible_v<_Tp>) return is_nothrow_assignable_v<_Tp&, _Up>; else return is_nothrow_constructible_v<_Tp, _Up>; } template static constexpr bool _S_noexcept() { return _S_noexcept1<_It, _It2>() && _S_noexcept1<_Sent, _Sent2>(); } class __arrow_proxy { iter_value_t<_It> _M_keep; constexpr __arrow_proxy(iter_reference_t<_It>&& __x) : _M_keep(std::move(__x)) { } friend class common_iterator; public: constexpr const iter_value_t<_It>* operator->() const noexcept { return std::__addressof(_M_keep); } }; class __postfix_proxy { iter_value_t<_It> _M_keep; constexpr __postfix_proxy(iter_reference_t<_It>&& __x) : _M_keep(std::forward>(__x)) { } friend class common_iterator; public: constexpr const iter_value_t<_It>& operator*() const noexcept { return _M_keep; } }; public: constexpr common_iterator() noexcept(is_nothrow_default_constructible_v<_It>) requires default_initializable<_It> : _M_it(), _M_index(0) { } constexpr common_iterator(_It __i) noexcept(is_nothrow_move_constructible_v<_It>) : _M_it(std::move(__i)), _M_index(0) { } constexpr common_iterator(_Sent __s) noexcept(is_nothrow_move_constructible_v<_Sent>) : _M_sent(std::move(__s)), _M_index(1) { } template requires convertible_to && convertible_to constexpr common_iterator(const common_iterator<_It2, _Sent2>& __x) noexcept(_S_noexcept()) : _M_valueless(), _M_index(__x._M_index) { do { if (std::__is_constant_evaluated() && !bool(__x._M_has_value())) std::__glibcxx_assert_fail(); } while (false); if (_M_index == 0) { if constexpr (is_trivially_default_constructible_v<_It>) _M_it = std::move(__x._M_it); else std::construct_at(std::__addressof(_M_it), __x._M_it); } else if (_M_index == 1) { if constexpr (is_trivially_default_constructible_v<_Sent>) _M_sent = std::move(__x._M_sent); else std::construct_at(std::__addressof(_M_sent), __x._M_sent); } } common_iterator(const common_iterator&) = default; constexpr common_iterator(const common_iterator& __x) noexcept(_S_noexcept()) requires (!is_trivially_copyable_v<_It> || !is_trivially_copyable_v<_Sent>) : _M_valueless(), _M_index(__x._M_index) { if (_M_index == 0) { if constexpr (is_trivially_default_constructible_v<_It>) _M_it = __x._M_it; else std::construct_at(std::__addressof(_M_it), __x._M_it); } else if (_M_index == 1) { if constexpr (is_trivially_default_constructible_v<_Sent>) _M_sent = __x._M_sent; else std::construct_at(std::__addressof(_M_sent), __x._M_sent); } } common_iterator(common_iterator&&) = default; constexpr common_iterator(common_iterator&& __x) noexcept(_S_noexcept<_It, _Sent>()) requires (!is_trivially_copyable_v<_It> || !is_trivially_copyable_v<_Sent>) : _M_valueless(), _M_index(__x._M_index) { if (_M_index == 0) { if constexpr (is_trivially_default_constructible_v<_It>) _M_it = std::move(__x._M_it); else std::construct_at(std::__addressof(_M_it), std::move(__x._M_it)); } else if (_M_index == 1) { if constexpr (is_trivially_default_constructible_v<_Sent>) _M_sent = std::move(__x._M_sent); else std::construct_at(std::__addressof(_M_sent), std::move(__x._M_sent)); } } constexpr common_iterator& operator=(const common_iterator&) = default; constexpr common_iterator& operator=(const common_iterator& __x) noexcept(is_nothrow_copy_assignable_v<_It> && is_nothrow_copy_assignable_v<_Sent> && is_nothrow_copy_constructible_v<_It> && is_nothrow_copy_constructible_v<_Sent>) requires (!is_trivially_copy_assignable_v<_It> || !is_trivially_copy_assignable_v<_Sent>) { _M_assign(__x); return *this; } constexpr common_iterator& operator=(common_iterator&&) = default; constexpr common_iterator& operator=(common_iterator&& __x) noexcept(is_nothrow_move_assignable_v<_It> && is_nothrow_move_assignable_v<_Sent> && is_nothrow_move_constructible_v<_It> && is_nothrow_move_constructible_v<_Sent>) requires (!is_trivially_move_assignable_v<_It> || !is_trivially_move_assignable_v<_Sent>) { _M_assign(std::move(__x)); return *this; } template requires convertible_to && convertible_to && assignable_from<_It&, const _It2&> && assignable_from<_Sent&, const _Sent2&> constexpr common_iterator& operator=(const common_iterator<_It2, _Sent2>& __x) noexcept(is_nothrow_constructible_v<_It, const _It2&> && is_nothrow_constructible_v<_Sent, const _Sent2&> && is_nothrow_assignable_v<_It&, const _It2&> && is_nothrow_assignable_v<_Sent&, const _Sent2&>) { do { if (std::__is_constant_evaluated() && !bool(__x._M_has_value())) std::__glibcxx_assert_fail(); } while (false); _M_assign(__x); return *this; } ~common_iterator() = default; constexpr ~common_iterator() requires (!is_trivially_destructible_v<_It> || !is_trivially_destructible_v<_Sent>) { if (_M_index == 0) _M_it.~_It(); else if (_M_index == 1) _M_sent.~_Sent(); } [[nodiscard]] constexpr decltype(auto) operator*() { do { if (std::__is_constant_evaluated() && !bool(_M_index == 0)) std::__glibcxx_assert_fail(); } while (false); return *_M_it; } [[nodiscard]] constexpr decltype(auto) operator*() const requires __detail::__dereferenceable { do { if (std::__is_constant_evaluated() && !bool(_M_index == 0)) std::__glibcxx_assert_fail(); } while (false); return *_M_it; } [[nodiscard]] constexpr auto operator->() const requires __detail::__common_iter_has_arrow<_It> { do { if (std::__is_constant_evaluated() && !bool(_M_index == 0)) std::__glibcxx_assert_fail(); } while (false); if constexpr (is_pointer_v<_It> || requires { _M_it.operator->(); }) return _M_it; else if constexpr (is_reference_v>) { auto&& __tmp = *_M_it; return std::__addressof(__tmp); } else return __arrow_proxy{*_M_it}; } constexpr common_iterator& operator++() { do { if (std::__is_constant_evaluated() && !bool(_M_index == 0)) std::__glibcxx_assert_fail(); } while (false); ++_M_it; return *this; } constexpr decltype(auto) operator++(int) { do { if (std::__is_constant_evaluated() && !bool(_M_index == 0)) std::__glibcxx_assert_fail(); } while (false); if constexpr (forward_iterator<_It>) { common_iterator __tmp = *this; ++*this; return __tmp; } else if constexpr (!__detail::__common_iter_use_postfix_proxy<_It>) return _M_it++; else { __postfix_proxy __p(**this); ++*this; return __p; } } template _Sent2> requires sentinel_for<_Sent, _It2> friend constexpr bool operator== [[nodiscard]] (const common_iterator& __x, const common_iterator<_It2, _Sent2>& __y) { switch(__x._M_index << 2 | __y._M_index) { case 0b0000: case 0b0101: return true; case 0b0001: return __x._M_it == __y._M_sent; case 0b0100: return __x._M_sent == __y._M_it; default: do { if (std::__is_constant_evaluated() && !bool(__x._M_has_value())) std::__glibcxx_assert_fail(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__y._M_has_value())) std::__glibcxx_assert_fail(); } while (false); __builtin_unreachable(); } } template _Sent2> requires sentinel_for<_Sent, _It2> && equality_comparable_with<_It, _It2> friend constexpr bool operator== [[nodiscard]] (const common_iterator& __x, const common_iterator<_It2, _Sent2>& __y) { switch(__x._M_index << 2 | __y._M_index) { case 0b0101: return true; case 0b0000: return __x._M_it == __y._M_it; case 0b0001: return __x._M_it == __y._M_sent; case 0b0100: return __x._M_sent == __y._M_it; default: do { if (std::__is_constant_evaluated() && !bool(__x._M_has_value())) std::__glibcxx_assert_fail(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__y._M_has_value())) std::__glibcxx_assert_fail(); } while (false); __builtin_unreachable(); } } template _It2, sized_sentinel_for<_It> _Sent2> requires sized_sentinel_for<_Sent, _It2> friend constexpr iter_difference_t<_It2> operator- [[nodiscard]] (const common_iterator& __x, const common_iterator<_It2, _Sent2>& __y) { switch(__x._M_index << 2 | __y._M_index) { case 0b0101: return 0; case 0b0000: return __x._M_it - __y._M_it; case 0b0001: return __x._M_it - __y._M_sent; case 0b0100: return __x._M_sent - __y._M_it; default: do { if (std::__is_constant_evaluated() && !bool(__x._M_has_value())) std::__glibcxx_assert_fail(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__y._M_has_value())) std::__glibcxx_assert_fail(); } while (false); __builtin_unreachable(); } } [[nodiscard]] friend constexpr iter_rvalue_reference_t<_It> iter_move(const common_iterator& __i) noexcept(noexcept(ranges::iter_move(std::declval()))) requires input_iterator<_It> { do { if (std::__is_constant_evaluated() && !bool(__i._M_index == 0)) std::__glibcxx_assert_fail(); } while (false); return ranges::iter_move(__i._M_it); } template _It2, typename _Sent2> friend constexpr void iter_swap(const common_iterator& __x, const common_iterator<_It2, _Sent2>& __y) noexcept(noexcept(ranges::iter_swap(std::declval(), std::declval()))) { do { if (std::__is_constant_evaluated() && !bool(__x._M_index == 0)) std::__glibcxx_assert_fail(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__y._M_index == 0)) std::__glibcxx_assert_fail(); } while (false); return ranges::iter_swap(__x._M_it, __y._M_it); } private: template _Sent2> requires (!same_as<_It2, _Sent2>) && copyable<_It2> friend class common_iterator; constexpr bool _M_has_value() const noexcept { return _M_index != _S_valueless; } template constexpr void _M_assign(_CIt&& __x) { if (_M_index == __x._M_index) { if (_M_index == 0) _M_it = std::forward<_CIt>(__x)._M_it; else if (_M_index == 1) _M_sent = std::forward<_CIt>(__x)._M_sent; } else { if (_M_index == 0) _M_it.~_It(); else if (_M_index == 1) _M_sent.~_Sent(); _M_index = _S_valueless; if (__x._M_index == 0) std::construct_at(std::__addressof(_M_it), std::forward<_CIt>(__x)._M_it); else if (__x._M_index == 1) std::construct_at(std::__addressof(_M_sent), std::forward<_CIt>(__x)._M_sent); _M_index = __x._M_index; } } union { _It _M_it; _Sent _M_sent; unsigned char _M_valueless; }; unsigned char _M_index; static constexpr unsigned char _S_valueless{2}; }; template struct incrementable_traits> { using difference_type = iter_difference_t<_It>; }; template struct iterator_traits> { private: template struct __ptr { using type = void; }; template requires __detail::__common_iter_has_arrow<_Iter> struct __ptr<_Iter> { using _CIter = common_iterator<_Iter, _Sent>; using type = decltype(std::declval().operator->()); }; static auto _S_iter_cat() { if constexpr (requires { requires derived_from<__iter_category_t<_It>, forward_iterator_tag>; }) return forward_iterator_tag{}; else return input_iterator_tag{}; } public: using iterator_concept = __conditional_t, forward_iterator_tag, input_iterator_tag>; using iterator_category = decltype(_S_iter_cat()); using value_type = iter_value_t<_It>; using difference_type = iter_difference_t<_It>; using pointer = typename __ptr<_It>::type; using reference = iter_reference_t<_It>; }; namespace __detail { template struct __counted_iter_value_type { }; template struct __counted_iter_value_type<_It> { using value_type = iter_value_t<_It>; }; template struct __counted_iter_concept { }; template requires requires { typename _It::iterator_concept; } struct __counted_iter_concept<_It> { using iterator_concept = typename _It::iterator_concept; }; template struct __counted_iter_cat { }; template requires requires { typename _It::iterator_category; } struct __counted_iter_cat<_It> { using iterator_category = typename _It::iterator_category; }; } template class counted_iterator : public __detail::__counted_iter_value_type<_It>, public __detail::__counted_iter_concept<_It>, public __detail::__counted_iter_cat<_It> { public: using iterator_type = _It; using difference_type = iter_difference_t<_It>; constexpr counted_iterator() requires default_initializable<_It> = default; constexpr counted_iterator(_It __i, iter_difference_t<_It> __n) : _M_current(std::move(__i)), _M_length(__n) { do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) std::__glibcxx_assert_fail(); } while (false); } template requires convertible_to constexpr counted_iterator(const counted_iterator<_It2>& __x) : _M_current(__x._M_current), _M_length(__x._M_length) { } template requires assignable_from<_It&, const _It2&> constexpr counted_iterator& operator=(const counted_iterator<_It2>& __x) { _M_current = __x._M_current; _M_length = __x._M_length; return *this; } [[nodiscard]] constexpr const _It& base() const & noexcept { return _M_current; } [[nodiscard]] constexpr _It base() && noexcept(is_nothrow_move_constructible_v<_It>) { return std::move(_M_current); } [[nodiscard]] constexpr iter_difference_t<_It> count() const noexcept { return _M_length; } [[nodiscard]] constexpr decltype(auto) operator*() noexcept(noexcept(*_M_current)) { do { if (std::__is_constant_evaluated() && !bool(_M_length > 0)) std::__glibcxx_assert_fail(); } while (false); return *_M_current; } [[nodiscard]] constexpr decltype(auto) operator*() const noexcept(noexcept(*_M_current)) requires __detail::__dereferenceable { do { if (std::__is_constant_evaluated() && !bool(_M_length > 0)) std::__glibcxx_assert_fail(); } while (false); return *_M_current; } [[nodiscard]] constexpr auto operator->() const noexcept requires contiguous_iterator<_It> { return std::to_address(_M_current); } constexpr counted_iterator& operator++() { do { if (std::__is_constant_evaluated() && !bool(_M_length > 0)) std::__glibcxx_assert_fail(); } while (false); ++_M_current; --_M_length; return *this; } constexpr decltype(auto) operator++(int) { do { if (std::__is_constant_evaluated() && !bool(_M_length > 0)) std::__glibcxx_assert_fail(); } while (false); --_M_length; try { return _M_current++; } catch(...) { ++_M_length; throw; } } constexpr counted_iterator operator++(int) requires forward_iterator<_It> { auto __tmp = *this; ++*this; return __tmp; } constexpr counted_iterator& operator--() requires bidirectional_iterator<_It> { --_M_current; ++_M_length; return *this; } constexpr counted_iterator operator--(int) requires bidirectional_iterator<_It> { auto __tmp = *this; --*this; return __tmp; } [[nodiscard]] constexpr counted_iterator operator+(iter_difference_t<_It> __n) const requires random_access_iterator<_It> { return counted_iterator(_M_current + __n, _M_length - __n); } [[nodiscard]] friend constexpr counted_iterator operator+(iter_difference_t<_It> __n, const counted_iterator& __x) requires random_access_iterator<_It> { return __x + __n; } constexpr counted_iterator& operator+=(iter_difference_t<_It> __n) requires random_access_iterator<_It> { do { if (std::__is_constant_evaluated() && !bool(__n <= _M_length)) std::__glibcxx_assert_fail(); } while (false); _M_current += __n; _M_length -= __n; return *this; } [[nodiscard]] constexpr counted_iterator operator-(iter_difference_t<_It> __n) const requires random_access_iterator<_It> { return counted_iterator(_M_current - __n, _M_length + __n); } template _It2> [[nodiscard]] friend constexpr iter_difference_t<_It2> operator-(const counted_iterator& __x, const counted_iterator<_It2>& __y) { return __y._M_length - __x._M_length; } [[nodiscard]] friend constexpr iter_difference_t<_It> operator-(const counted_iterator& __x, default_sentinel_t) { return -__x._M_length; } [[nodiscard]] friend constexpr iter_difference_t<_It> operator-(default_sentinel_t, const counted_iterator& __y) { return __y._M_length; } constexpr counted_iterator& operator-=(iter_difference_t<_It> __n) requires random_access_iterator<_It> { do { if (std::__is_constant_evaluated() && !bool(-__n <= _M_length)) std::__glibcxx_assert_fail(); } while (false); _M_current -= __n; _M_length += __n; return *this; } [[nodiscard]] constexpr decltype(auto) operator[](iter_difference_t<_It> __n) const noexcept(noexcept(_M_current[__n])) requires random_access_iterator<_It> { do { if (std::__is_constant_evaluated() && !bool(__n < _M_length)) std::__glibcxx_assert_fail(); } while (false); return _M_current[__n]; } template _It2> [[nodiscard]] friend constexpr bool operator==(const counted_iterator& __x, const counted_iterator<_It2>& __y) { return __x._M_length == __y._M_length; } [[nodiscard]] friend constexpr bool operator==(const counted_iterator& __x, default_sentinel_t) { return __x._M_length == 0; } template _It2> [[nodiscard]] friend constexpr strong_ordering operator<=>(const counted_iterator& __x, const counted_iterator<_It2>& __y) { return __y._M_length <=> __x._M_length; } [[nodiscard]] friend constexpr iter_rvalue_reference_t<_It> iter_move(const counted_iterator& __i) noexcept(noexcept(ranges::iter_move(__i._M_current))) requires input_iterator<_It> { do { if (std::__is_constant_evaluated() && !bool(__i._M_length > 0)) std::__glibcxx_assert_fail(); } while (false); return ranges::iter_move(__i._M_current); } template _It2> friend constexpr void iter_swap(const counted_iterator& __x, const counted_iterator<_It2>& __y) noexcept(noexcept(ranges::iter_swap(__x._M_current, __y._M_current))) { do { if (std::__is_constant_evaluated() && !bool(__x._M_length > 0 && __y._M_length > 0)) std::__glibcxx_assert_fail(); } while (false); ranges::iter_swap(__x._M_current, __y._M_current); } private: template friend class counted_iterator; _It _M_current = _It(); iter_difference_t<_It> _M_length = 0; }; template requires same_as<__detail::__iter_traits<_It>, iterator_traits<_It>> struct iterator_traits> : iterator_traits<_It> { using pointer = __conditional_t, add_pointer_t>, void>; }; template using iter_const_reference_t = common_reference_t&&, iter_reference_t<_It>>; template class basic_const_iterator; namespace __detail { template concept __constant_iterator = input_iterator<_It> && same_as, iter_reference_t<_It>>; template inline constexpr bool __is_const_iterator = false; template inline constexpr bool __is_const_iterator> = true; template concept __not_a_const_iterator = !__is_const_iterator<_Tp>; template using __iter_const_rvalue_reference_t = common_reference_t&&, iter_rvalue_reference_t<_It>>; template struct __basic_const_iterator_iter_cat { }; template struct __basic_const_iterator_iter_cat<_It> { using iterator_category = __iter_category_t<_It>; }; } template using const_iterator = __conditional_t<__detail::__constant_iterator<_It>, _It, basic_const_iterator<_It>>; namespace __detail { template struct __const_sentinel { using type = _Sent; }; template struct __const_sentinel<_Sent> { using type = const_iterator<_Sent>; }; } template using const_sentinel = typename __detail::__const_sentinel<_Sent>::type; template class basic_const_iterator : public __detail::__basic_const_iterator_iter_cat<_It> { _It _M_current = _It(); using __reference = iter_const_reference_t<_It>; using __rvalue_reference = __detail::__iter_const_rvalue_reference_t<_It>; static auto _S_iter_concept() { if constexpr (contiguous_iterator<_It>) return contiguous_iterator_tag{}; else if constexpr (random_access_iterator<_It>) return random_access_iterator_tag{}; else if constexpr (bidirectional_iterator<_It>) return bidirectional_iterator_tag{}; else if constexpr (forward_iterator<_It>) return forward_iterator_tag{}; else return input_iterator_tag{}; } template friend class basic_const_iterator; public: using iterator_concept = decltype(_S_iter_concept()); using value_type = iter_value_t<_It>; using difference_type = iter_difference_t<_It>; basic_const_iterator() requires default_initializable<_It> = default; constexpr basic_const_iterator(_It __current) noexcept(is_nothrow_move_constructible_v<_It>) : _M_current(std::move(__current)) { } template _It2> constexpr basic_const_iterator(basic_const_iterator<_It2> __current) noexcept(is_nothrow_constructible_v<_It, _It2>) : _M_current(std::move(__current._M_current)) { } template<__detail::__different_from _Tp> requires convertible_to<_Tp, _It> constexpr basic_const_iterator(_Tp&& __current) noexcept(is_nothrow_constructible_v<_It, _Tp>) : _M_current(std::forward<_Tp>(__current)) { } constexpr const _It& base() const & noexcept { return _M_current; } constexpr _It base() && noexcept(is_nothrow_move_constructible_v<_It>) { return std::move(_M_current); } constexpr __reference operator*() const noexcept(noexcept(static_cast<__reference>(*_M_current))) { return static_cast<__reference>(*_M_current); } constexpr const auto* operator->() const noexcept(contiguous_iterator<_It> || noexcept(*_M_current)) requires is_lvalue_reference_v> && same_as>, value_type> { if constexpr (contiguous_iterator<_It>) return std::to_address(_M_current); else return std::__addressof(*_M_current); } constexpr basic_const_iterator& operator++() noexcept(noexcept(++_M_current)) { ++_M_current; return *this; } constexpr void operator++(int) noexcept(noexcept(++_M_current)) { ++_M_current; } constexpr basic_const_iterator operator++(int) noexcept(noexcept(++*this) && is_nothrow_copy_constructible_v) requires forward_iterator<_It> { auto __tmp = *this; ++*this; return __tmp; } constexpr basic_const_iterator& operator--() noexcept(noexcept(--_M_current)) requires bidirectional_iterator<_It> { --_M_current; return *this; } constexpr basic_const_iterator operator--(int) noexcept(noexcept(--*this) && is_nothrow_copy_constructible_v) requires bidirectional_iterator<_It> { auto __tmp = *this; --*this; return __tmp; } constexpr basic_const_iterator& operator+=(difference_type __n) noexcept(noexcept(_M_current += __n)) requires random_access_iterator<_It> { _M_current += __n; return *this; } constexpr basic_const_iterator& operator-=(difference_type __n) noexcept(noexcept(_M_current -= __n)) requires random_access_iterator<_It> { _M_current -= __n; return *this; } constexpr __reference operator[](difference_type __n) const noexcept(noexcept(static_cast<__reference>(_M_current[__n]))) requires random_access_iterator<_It> { return static_cast<__reference>(_M_current[__n]); } template _Sent> constexpr bool operator==(const _Sent& __s) const noexcept(noexcept(_M_current == __s)) { return _M_current == __s; } template<__detail::__not_a_const_iterator _CIt> requires __detail::__constant_iterator<_CIt> && convertible_to<_It, _CIt> constexpr operator _CIt() const& { return _M_current; } template<__detail::__not_a_const_iterator _CIt> requires __detail::__constant_iterator<_CIt> && convertible_to<_It, _CIt> constexpr operator _CIt() && { return std::move(_M_current); } constexpr bool operator<(const basic_const_iterator& __y) const noexcept(noexcept(_M_current < __y._M_current)) requires random_access_iterator<_It> { return _M_current < __y._M_current; } constexpr bool operator>(const basic_const_iterator& __y) const noexcept(noexcept(_M_current > __y._M_current)) requires random_access_iterator<_It> { return _M_current > __y._M_current; } constexpr bool operator<=(const basic_const_iterator& __y) const noexcept(noexcept(_M_current <= __y._M_current)) requires random_access_iterator<_It> { return _M_current <= __y._M_current; } constexpr bool operator>=(const basic_const_iterator& __y) const noexcept(noexcept(_M_current >= __y._M_current)) requires random_access_iterator<_It> { return _M_current >= __y._M_current; } constexpr auto operator<=>(const basic_const_iterator& __y) const noexcept(noexcept(_M_current <=> __y._M_current)) requires random_access_iterator<_It> && three_way_comparable<_It> { return _M_current <=> __y._M_current; } template<__detail::__different_from _It2> constexpr bool operator<(const _It2& __y) const noexcept(noexcept(_M_current < __y)) requires random_access_iterator<_It> && totally_ordered_with<_It, _It2> { return _M_current < __y; } template<__detail::__different_from _It2> constexpr bool operator>(const _It2& __y) const noexcept(noexcept(_M_current > __y)) requires random_access_iterator<_It> && totally_ordered_with<_It, _It2> { return _M_current > __y; } template<__detail::__different_from _It2> constexpr bool operator<=(const _It2& __y) const noexcept(noexcept(_M_current <= __y)) requires random_access_iterator<_It> && totally_ordered_with<_It, _It2> { return _M_current <= __y; } template<__detail::__different_from _It2> constexpr bool operator>=(const _It2& __y) const noexcept(noexcept(_M_current >= __y)) requires random_access_iterator<_It> && totally_ordered_with<_It, _It2> { return _M_current >= __y; } template<__detail::__different_from _It2> constexpr auto operator<=>(const _It2& __y) const noexcept(noexcept(_M_current <=> __y)) requires random_access_iterator<_It> && totally_ordered_with<_It, _It2> && three_way_comparable_with<_It, _It2> { return _M_current <=> __y; } template<__detail::__not_a_const_iterator _It2, same_as<_It> _It3> friend constexpr bool operator<(const _It2& __x, const basic_const_iterator<_It3>& __y) noexcept(noexcept(__x < __y._M_current)) requires random_access_iterator<_It> && totally_ordered_with<_It, _It2> { return __x < __y._M_current; } template<__detail::__not_a_const_iterator _It2, same_as<_It> _It3> friend constexpr bool operator>(const _It2& __x, const basic_const_iterator<_It3>& __y) noexcept(noexcept(__x > __y._M_current)) requires random_access_iterator<_It> && totally_ordered_with<_It, _It2> { return __x > __y._M_current; } template<__detail::__not_a_const_iterator _It2, same_as<_It> _It3> friend constexpr bool operator<=(const _It2& __x, const basic_const_iterator<_It3>& __y) noexcept(noexcept(__x <= __y._M_current)) requires random_access_iterator<_It> && totally_ordered_with<_It, _It2> { return __x <= __y._M_current; } template<__detail::__not_a_const_iterator _It2, same_as<_It> _It3> friend constexpr bool operator>=(const _It2& __x, const basic_const_iterator<_It3>& __y) noexcept(noexcept(__x >= __y._M_current)) requires random_access_iterator<_It> && totally_ordered_with<_It, _It2> { return __x >= __y._M_current; } friend constexpr basic_const_iterator operator+(const basic_const_iterator& __i, difference_type __n) noexcept(noexcept(basic_const_iterator(__i._M_current + __n))) requires random_access_iterator<_It> { return basic_const_iterator(__i._M_current + __n); } friend constexpr basic_const_iterator operator+(difference_type __n, const basic_const_iterator& __i) noexcept(noexcept(basic_const_iterator(__i._M_current + __n))) requires random_access_iterator<_It> { return basic_const_iterator(__i._M_current + __n); } friend constexpr basic_const_iterator operator-(const basic_const_iterator& __i, difference_type __n) noexcept(noexcept(basic_const_iterator(__i._M_current - __n))) requires random_access_iterator<_It> { return basic_const_iterator(__i._M_current - __n); } template _Sent> constexpr difference_type operator-(const _Sent& __y) const noexcept(noexcept(_M_current - __y)) { return _M_current - __y; } template<__detail::__not_a_const_iterator _Sent, same_as<_It> _It2> requires sized_sentinel_for<_Sent, _It> friend constexpr difference_type operator-(const _Sent& __x, const basic_const_iterator<_It2>& __y) noexcept(noexcept(__x - __y._M_current)) { return __x - __y._M_current; } friend constexpr __rvalue_reference iter_move(const basic_const_iterator& __i) noexcept(noexcept(static_cast<__rvalue_reference>(ranges::iter_move(__i._M_current)))) { return static_cast<__rvalue_reference>(ranges::iter_move(__i._M_current)); } }; template _Up> requires input_iterator> struct common_type, _Up> { using type = basic_const_iterator>; }; template _Up> requires input_iterator> struct common_type<_Up, basic_const_iterator<_Tp>> { using type = basic_const_iterator>; }; template _Up> requires input_iterator> struct common_type, basic_const_iterator<_Up>> { using type = basic_const_iterator>; }; template constexpr const_iterator<_It> make_const_iterator(_It __it) noexcept(is_nothrow_convertible_v<_It, const_iterator<_It>>) { return __it; } template constexpr const_sentinel<_Sent> make_const_sentinel(_Sent __s) noexcept(is_nothrow_convertible_v<_Sent, const_sentinel<_Sent>>) { return __s; } } namespace __gnu_debug { template class _Safe_iterator; } namespace std __attribute__ ((__visibility__ ("default"))) { template [[__nodiscard__]] __attribute__((__always_inline__)) constexpr inline _Iterator __niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container> __it) noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) { return __it.base(); } template [[__nodiscard__]] __attribute__((__always_inline__)) constexpr inline _Iterator __niter_base(_Iterator __it) noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) { return __it; } # 3027 "/usr/include/c++/15/bits/stl_iterator.h" 3 template constexpr decltype(std::__niter_base(std::declval<_Ite>())) __niter_base(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, std::random_access_iterator_tag>&) noexcept(std::is_nothrow_copy_constructible<_Ite>::value); template constexpr inline auto __niter_base(reverse_iterator<_Iterator> __it) -> decltype(__make_reverse_iterator(__niter_base(__it.base()))) { return __make_reverse_iterator(__niter_base(__it.base())); } template constexpr inline auto __niter_base(move_iterator<_Iterator> __it) -> decltype(make_move_iterator(__niter_base(__it.base()))) { return make_move_iterator(__niter_base(__it.base())); } template constexpr inline auto __miter_base(reverse_iterator<_Iterator> __it) -> decltype(__make_reverse_iterator(__miter_base(__it.base()))) { return __make_reverse_iterator(__miter_base(__it.base())); } template constexpr inline auto __miter_base(move_iterator<_Iterator> __it) -> decltype(__miter_base(__it.base())) { return __miter_base(__it.base()); } template [[__nodiscard__]] constexpr inline _From __niter_wrap(_From __from, _To __res) { return __from + (std::__niter_base(__res) - std::__niter_base(__from)); } template [[__nodiscard__]] __attribute__((__always_inline__)) constexpr inline _Iterator __niter_wrap(const _Iterator&, _Iterator __res) { return __res; } template using __iter_key_t = remove_const_t< tuple_element_t<0, typename iterator_traits<_InputIterator>::value_type>>; template using __iter_val_t = tuple_element_t<1, typename iterator_traits<_InputIterator>::value_type>; template struct pair; template using __iter_to_alloc_t = pair, __iter_val_t<_InputIterator>>; } # 40 "/usr/include/c++/15/bits/ranges_base.h" 2 3 # 1 "/usr/include/c++/15/ext/numeric_traits.h" 1 3 # 39 "/usr/include/c++/15/ext/numeric_traits.h" 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { # 52 "/usr/include/c++/15/ext/numeric_traits.h" 3 template struct __is_integer_nonstrict : public std::__is_integer<_Tp> { using std::__is_integer<_Tp>::__value; enum { __width = __value ? sizeof(_Tp) * 8 : 0 }; }; template struct __numeric_traits_integer { static_assert(__is_integer_nonstrict<_Value>::__value, "invalid specialization"); static const bool __is_signed = (_Value)(-1) < 0; static const int __digits = __is_integer_nonstrict<_Value>::__width - __is_signed; static const _Value __max = __is_signed ? (((((_Value)1 << (__digits - 1)) - 1) << 1) + 1) : ~(_Value)0; static const _Value __min = __is_signed ? -__max - 1 : (_Value)0; }; template const _Value __numeric_traits_integer<_Value>::__min; template const _Value __numeric_traits_integer<_Value>::__max; template const bool __numeric_traits_integer<_Value>::__is_signed; template const int __numeric_traits_integer<_Value>::__digits; # 139 "/usr/include/c++/15/ext/numeric_traits.h" 3 template using __int_traits = __numeric_traits_integer<_Tp>; # 159 "/usr/include/c++/15/ext/numeric_traits.h" 3 template struct __numeric_traits_floating { static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 64) * 643L / 2136); static const bool __is_signed = true; static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 18); static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 4932); }; template const int __numeric_traits_floating<_Value>::__max_digits10; template const bool __numeric_traits_floating<_Value>::__is_signed; template const int __numeric_traits_floating<_Value>::__digits10; template const int __numeric_traits_floating<_Value>::__max_exponent10; template struct __numeric_traits : public __numeric_traits_integer<_Value> { }; template<> struct __numeric_traits : public __numeric_traits_floating { }; template<> struct __numeric_traits : public __numeric_traits_floating { }; template<> struct __numeric_traits : public __numeric_traits_floating { }; # 240 "/usr/include/c++/15/ext/numeric_traits.h" 3 } # 41 "/usr/include/c++/15/bits/ranges_base.h" 2 3 # 1 "/usr/include/c++/15/bits/max_size_type.h" 1 3 # 39 "/usr/include/c++/15/bits/max_size_type.h" 3 # 1 "/usr/include/c++/15/numbers" 1 3 # 37 "/usr/include/c++/15/numbers" 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 38 "/usr/include/c++/15/numbers" 2 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" namespace std __attribute__ ((__visibility__ ("default"))) { namespace numbers { template using _Enable_if_floating = enable_if_t, _Tp>; template inline constexpr _Tp e_v = _Enable_if_floating<_Tp>(2.718281828459045235360287471352662498L); template inline constexpr _Tp log2e_v = _Enable_if_floating<_Tp>(1.442695040888963407359924681001892137L); template inline constexpr _Tp log10e_v = _Enable_if_floating<_Tp>(0.434294481903251827651128918916605082L); template inline constexpr _Tp pi_v = _Enable_if_floating<_Tp>(3.141592653589793238462643383279502884L); template inline constexpr _Tp inv_pi_v = _Enable_if_floating<_Tp>(0.318309886183790671537767526745028724L); template inline constexpr _Tp inv_sqrtpi_v = _Enable_if_floating<_Tp>(0.564189583547756286948079451560772586L); template inline constexpr _Tp ln2_v = _Enable_if_floating<_Tp>(0.693147180559945309417232121458176568L); template inline constexpr _Tp ln10_v = _Enable_if_floating<_Tp>(2.302585092994045684017991454684364208L); template inline constexpr _Tp sqrt2_v = _Enable_if_floating<_Tp>(1.414213562373095048801688724209698079L); template inline constexpr _Tp sqrt3_v = _Enable_if_floating<_Tp>(1.732050807568877293527446341505872367L); template inline constexpr _Tp inv_sqrt3_v = _Enable_if_floating<_Tp>(0.577350269189625764509148780501957456L); template inline constexpr _Tp egamma_v = _Enable_if_floating<_Tp>(0.577215664901532860606512090082402431L); template inline constexpr _Tp phi_v = _Enable_if_floating<_Tp>(1.618033988749894848204586834365638118L); inline constexpr double e = e_v; inline constexpr double log2e = log2e_v; inline constexpr double log10e = log10e_v; inline constexpr double pi = pi_v; inline constexpr double inv_pi = inv_pi_v; inline constexpr double inv_sqrtpi = inv_sqrtpi_v; inline constexpr double ln2 = ln2_v; inline constexpr double ln10 = ln10_v; inline constexpr double sqrt2 = sqrt2_v; inline constexpr double sqrt3 = sqrt3_v; inline constexpr double inv_sqrt3 = inv_sqrt3_v; inline constexpr double egamma = egamma_v; inline constexpr double phi = phi_v; # 210 "/usr/include/c++/15/numbers" 3 template<> inline constexpr _Float16 e_v<_Float16> = 2.718281828459045235360287471352662498F16; template<> inline constexpr _Float16 log2e_v<_Float16> = 1.442695040888963407359924681001892137F16; template<> inline constexpr _Float16 log10e_v<_Float16> = 0.434294481903251827651128918916605082F16; template<> inline constexpr _Float16 pi_v<_Float16> = 3.141592653589793238462643383279502884F16; template<> inline constexpr _Float16 inv_pi_v<_Float16> = 0.318309886183790671537767526745028724F16; template<> inline constexpr _Float16 inv_sqrtpi_v<_Float16> = 0.564189583547756286948079451560772586F16; template<> inline constexpr _Float16 ln2_v<_Float16> = 0.693147180559945309417232121458176568F16; template<> inline constexpr _Float16 ln10_v<_Float16> = 2.302585092994045684017991454684364208F16; template<> inline constexpr _Float16 sqrt2_v<_Float16> = 1.414213562373095048801688724209698079F16; template<> inline constexpr _Float16 sqrt3_v<_Float16> = 1.732050807568877293527446341505872367F16; template<> inline constexpr _Float16 inv_sqrt3_v<_Float16> = 0.577350269189625764509148780501957456F16; template<> inline constexpr _Float16 egamma_v<_Float16> = 0.577215664901532860606512090082402431F16; template<> inline constexpr _Float16 phi_v<_Float16> = 1.618033988749894848204586834365638118F16; template<> inline constexpr _Float32 e_v<_Float32> = 2.718281828459045235360287471352662498F32; template<> inline constexpr _Float32 log2e_v<_Float32> = 1.442695040888963407359924681001892137F32; template<> inline constexpr _Float32 log10e_v<_Float32> = 0.434294481903251827651128918916605082F32; template<> inline constexpr _Float32 pi_v<_Float32> = 3.141592653589793238462643383279502884F32; template<> inline constexpr _Float32 inv_pi_v<_Float32> = 0.318309886183790671537767526745028724F32; template<> inline constexpr _Float32 inv_sqrtpi_v<_Float32> = 0.564189583547756286948079451560772586F32; template<> inline constexpr _Float32 ln2_v<_Float32> = 0.693147180559945309417232121458176568F32; template<> inline constexpr _Float32 ln10_v<_Float32> = 2.302585092994045684017991454684364208F32; template<> inline constexpr _Float32 sqrt2_v<_Float32> = 1.414213562373095048801688724209698079F32; template<> inline constexpr _Float32 sqrt3_v<_Float32> = 1.732050807568877293527446341505872367F32; template<> inline constexpr _Float32 inv_sqrt3_v<_Float32> = 0.577350269189625764509148780501957456F32; template<> inline constexpr _Float32 egamma_v<_Float32> = 0.577215664901532860606512090082402431F32; template<> inline constexpr _Float32 phi_v<_Float32> = 1.618033988749894848204586834365638118F32; template<> inline constexpr _Float64 e_v<_Float64> = 2.718281828459045235360287471352662498F64; template<> inline constexpr _Float64 log2e_v<_Float64> = 1.442695040888963407359924681001892137F64; template<> inline constexpr _Float64 log10e_v<_Float64> = 0.434294481903251827651128918916605082F64; template<> inline constexpr _Float64 pi_v<_Float64> = 3.141592653589793238462643383279502884F64; template<> inline constexpr _Float64 inv_pi_v<_Float64> = 0.318309886183790671537767526745028724F64; template<> inline constexpr _Float64 inv_sqrtpi_v<_Float64> = 0.564189583547756286948079451560772586F64; template<> inline constexpr _Float64 ln2_v<_Float64> = 0.693147180559945309417232121458176568F64; template<> inline constexpr _Float64 ln10_v<_Float64> = 2.302585092994045684017991454684364208F64; template<> inline constexpr _Float64 sqrt2_v<_Float64> = 1.414213562373095048801688724209698079F64; template<> inline constexpr _Float64 sqrt3_v<_Float64> = 1.732050807568877293527446341505872367F64; template<> inline constexpr _Float64 inv_sqrt3_v<_Float64> = 0.577350269189625764509148780501957456F64; template<> inline constexpr _Float64 egamma_v<_Float64> = 0.577215664901532860606512090082402431F64; template<> inline constexpr _Float64 phi_v<_Float64> = 1.618033988749894848204586834365638118F64; template<> inline constexpr _Float128 e_v<_Float128> = 2.718281828459045235360287471352662498F128; template<> inline constexpr _Float128 log2e_v<_Float128> = 1.442695040888963407359924681001892137F128; template<> inline constexpr _Float128 log10e_v<_Float128> = 0.434294481903251827651128918916605082F128; template<> inline constexpr _Float128 pi_v<_Float128> = 3.141592653589793238462643383279502884F128; template<> inline constexpr _Float128 inv_pi_v<_Float128> = 0.318309886183790671537767526745028724F128; template<> inline constexpr _Float128 inv_sqrtpi_v<_Float128> = 0.564189583547756286948079451560772586F128; template<> inline constexpr _Float128 ln2_v<_Float128> = 0.693147180559945309417232121458176568F128; template<> inline constexpr _Float128 ln10_v<_Float128> = 2.302585092994045684017991454684364208F128; template<> inline constexpr _Float128 sqrt2_v<_Float128> = 1.414213562373095048801688724209698079F128; template<> inline constexpr _Float128 sqrt3_v<_Float128> = 1.732050807568877293527446341505872367F128; template<> inline constexpr _Float128 inv_sqrt3_v<_Float128> = 0.577350269189625764509148780501957456F128; template<> inline constexpr _Float128 egamma_v<_Float128> = 0.577215664901532860606512090082402431F128; template<> inline constexpr _Float128 phi_v<_Float128> = 1.618033988749894848204586834365638118F128; template<> inline constexpr __float128 e_v<__float128> = 2.718281828459045235360287471352662498Q; template<> inline constexpr __float128 log2e_v<__float128> = 1.442695040888963407359924681001892137Q; template<> inline constexpr __float128 log10e_v<__float128> = 0.434294481903251827651128918916605082Q; template<> inline constexpr __float128 pi_v<__float128> = 3.141592653589793238462643383279502884Q; template<> inline constexpr __float128 inv_pi_v<__float128> = 0.318309886183790671537767526745028724Q; template<> inline constexpr __float128 inv_sqrtpi_v<__float128> = 0.564189583547756286948079451560772586Q; template<> inline constexpr __float128 ln2_v<__float128> = 0.693147180559945309417232121458176568Q; template<> inline constexpr __float128 ln10_v<__float128> = 2.302585092994045684017991454684364208Q; template<> inline constexpr __float128 sqrt2_v<__float128> = 1.414213562373095048801688724209698079Q; template<> inline constexpr __float128 sqrt3_v<__float128> = 1.732050807568877293527446341505872367Q; template<> inline constexpr __float128 inv_sqrt3_v<__float128> = 0.577350269189625764509148780501957456Q; template<> inline constexpr __float128 egamma_v<__float128> = 0.577215664901532860606512090082402431Q; template<> inline constexpr __float128 phi_v<__float128> = 1.618033988749894848204586834365638118Q; } } #pragma GCC diagnostic pop # 40 "/usr/include/c++/15/bits/max_size_type.h" 2 3 # 50 "/usr/include/c++/15/bits/max_size_type.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template struct numeric_limits; namespace ranges { namespace __detail { class __max_size_type { public: __max_size_type() = default; template requires integral<_Tp> || __is_int128<_Tp> constexpr __max_size_type(_Tp __i) noexcept : _M_val(__i), _M_msb(__i < 0) { } constexpr explicit __max_size_type(const __max_diff_type& __d) noexcept; template requires integral<_Tp> || __is_int128<_Tp> constexpr explicit operator _Tp() const noexcept { return _M_val; } constexpr explicit operator bool() const noexcept { return _M_val != 0 || _M_msb != 0; } constexpr __max_size_type operator+() const noexcept { return *this; } constexpr __max_size_type operator~() const noexcept { return __max_size_type{~_M_val, !_M_msb}; } constexpr __max_size_type operator-() const noexcept { return operator~() + 1; } constexpr __max_size_type& operator++() noexcept { return *this += 1; } constexpr __max_size_type operator++(int) noexcept { auto __tmp = *this; ++*this; return __tmp; } constexpr __max_size_type& operator--() noexcept { return *this -= 1; } constexpr __max_size_type operator--(int) noexcept { auto __tmp = *this; --*this; return __tmp; } constexpr __max_size_type& operator+=(const __max_size_type& __r) noexcept { const auto __sum = _M_val + __r._M_val; const bool __overflow = (__sum < _M_val); _M_msb = _M_msb ^ __r._M_msb ^ __overflow; _M_val = __sum; return *this; } constexpr __max_size_type& operator-=(const __max_size_type& __r) noexcept { return *this += -__r; } constexpr __max_size_type& operator*=(__max_size_type __r) noexcept { constexpr __max_size_type __threshold = __rep(1) << (_S_rep_bits / 2 - 1); if (_M_val < __threshold && __r < __threshold) _M_val = _M_val * __r._M_val; else { const bool __lsb = _M_val & 1; const bool __rlsb = __r._M_val & 1; *this >>= 1; __r >>= 1; _M_val = (2 * _M_val * __r._M_val + _M_val * __rlsb + __r._M_val * __lsb); *this <<= 1; *this += __rlsb * __lsb; } return *this; } constexpr __max_size_type& operator/=(const __max_size_type& __r) noexcept { do { if (std::__is_constant_evaluated() && !bool(__r != 0)) std::__glibcxx_assert_fail(); } while (false); if (!_M_msb && !__r._M_msb) [[likely]] _M_val /= __r._M_val; else if (_M_msb && __r._M_msb) { _M_val = (_M_val >= __r._M_val); _M_msb = 0; } else if (!_M_msb && __r._M_msb) _M_val = 0; else if (_M_msb && !__r._M_msb) { const auto __orig = *this; *this >>= 1; _M_val /= __r._M_val; *this <<= 1; if (__orig - *this * __r >= __r) ++_M_val; } return *this; } constexpr __max_size_type& operator%=(const __max_size_type& __r) noexcept { if (!_M_msb && !__r._M_msb) [[likely]] _M_val %= __r._M_val; else *this -= (*this / __r) * __r; return *this; } constexpr __max_size_type& operator<<=(const __max_size_type& __r) noexcept { do { if (std::__is_constant_evaluated() && !bool(__r <= _S_rep_bits)) std::__glibcxx_assert_fail(); } while (false); if (__r != 0) { _M_msb = (_M_val >> (_S_rep_bits - __r._M_val)) & 1; if (__r._M_val == _S_rep_bits) [[unlikely]] _M_val = 0; else _M_val <<= __r._M_val; } return *this; } constexpr __max_size_type& operator>>=(const __max_size_type& __r) noexcept { do { if (std::__is_constant_evaluated() && !bool(__r <= _S_rep_bits)) std::__glibcxx_assert_fail(); } while (false); if (__r != 0) { if (__r._M_val == _S_rep_bits) [[unlikely]] _M_val = 0; else _M_val >>= __r._M_val; if (_M_msb) [[unlikely]] { _M_val |= __rep(1) << (_S_rep_bits - __r._M_val); _M_msb = 0; } } return *this; } constexpr __max_size_type& operator&=(const __max_size_type& __r) noexcept { _M_val &= __r._M_val; _M_msb &= __r._M_msb; return *this; } constexpr __max_size_type& operator|=(const __max_size_type& __r) noexcept { _M_val |= __r._M_val; _M_msb |= __r._M_msb; return *this; } constexpr __max_size_type& operator^=(const __max_size_type& __r) noexcept { _M_val ^= __r._M_val; _M_msb ^= __r._M_msb; return *this; } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator+=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a + __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator-=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a - __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator*=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a * __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator/=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a / __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator%=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a % __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator&=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a & __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator|=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a | __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator^=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a ^ __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator<<=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a << __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator>>=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a >> __b)); } friend constexpr __max_size_type operator+(__max_size_type __l, const __max_size_type& __r) noexcept { __l += __r; return __l; } friend constexpr __max_size_type operator-(__max_size_type __l, const __max_size_type& __r) noexcept { __l -= __r; return __l; } friend constexpr __max_size_type operator*(__max_size_type __l, const __max_size_type& __r) noexcept { __l *= __r; return __l; } friend constexpr __max_size_type operator/(__max_size_type __l, const __max_size_type& __r) noexcept { __l /= __r; return __l; } friend constexpr __max_size_type operator%(__max_size_type __l, const __max_size_type& __r) noexcept { __l %= __r; return __l; } friend constexpr __max_size_type operator<<(__max_size_type __l, const __max_size_type& __r) noexcept { __l <<= __r; return __l; } friend constexpr __max_size_type operator>>(__max_size_type __l, const __max_size_type& __r) noexcept { __l >>= __r; return __l; } friend constexpr __max_size_type operator&(__max_size_type __l, const __max_size_type& __r) noexcept { __l &= __r; return __l; } friend constexpr __max_size_type operator|(__max_size_type __l, const __max_size_type& __r) noexcept { __l |= __r; return __l; } friend constexpr __max_size_type operator^(__max_size_type __l, const __max_size_type& __r) noexcept { __l ^= __r; return __l; } friend constexpr bool operator==(const __max_size_type& __l, const __max_size_type& __r) noexcept { return __l._M_val == __r._M_val && __l._M_msb == __r._M_msb; } friend constexpr strong_ordering operator<=>(const __max_size_type& __l, const __max_size_type& __r) noexcept { if (__l._M_msb ^ __r._M_msb) return __l._M_msb ? strong_ordering::greater : strong_ordering::less; else return __l._M_val <=> __r._M_val; } # 422 "/usr/include/c++/15/bits/max_size_type.h" 3 __extension__ using __rep = unsigned __int128; static constexpr size_t _S_rep_bits = sizeof(__rep) * 8; private: __rep _M_val = 0; unsigned _M_msb:1 = 0; constexpr explicit __max_size_type(__rep __val, int __msb) noexcept : _M_val(__val), _M_msb(__msb) { } friend __max_diff_type; friend std::numeric_limits<__max_size_type>; friend std::numeric_limits<__max_diff_type>; }; class __max_diff_type { public: __max_diff_type() = default; template requires integral<_Tp> || __is_int128<_Tp> constexpr __max_diff_type(_Tp __i) noexcept : _M_rep(__i) { } constexpr explicit __max_diff_type(const __max_size_type& __d) noexcept : _M_rep(__d) { } template requires integral<_Tp> || __is_int128<_Tp> constexpr explicit operator _Tp() const noexcept { return static_cast<_Tp>(_M_rep); } constexpr explicit operator bool() const noexcept { return _M_rep != 0; } constexpr __max_diff_type operator+() const noexcept { return *this; } constexpr __max_diff_type operator-() const noexcept { return __max_diff_type(-_M_rep); } constexpr __max_diff_type operator~() const noexcept { return __max_diff_type(~_M_rep); } constexpr __max_diff_type& operator++() noexcept { return *this += 1; } constexpr __max_diff_type operator++(int) noexcept { auto __tmp = *this; ++*this; return __tmp; } constexpr __max_diff_type& operator--() noexcept { return *this -= 1; } constexpr __max_diff_type operator--(int) noexcept { auto __tmp = *this; --*this; return __tmp; } constexpr __max_diff_type& operator+=(const __max_diff_type& __r) noexcept { _M_rep += __r._M_rep; return *this; } constexpr __max_diff_type& operator-=(const __max_diff_type& __r) noexcept { _M_rep -= __r._M_rep; return *this; } constexpr __max_diff_type& operator*=(const __max_diff_type& __r) noexcept { _M_rep *= __r._M_rep; return *this; } constexpr __max_diff_type& operator/=(const __max_diff_type& __r) noexcept { do { if (std::__is_constant_evaluated() && !bool(__r != 0)) std::__glibcxx_assert_fail(); } while (false); const bool __neg = *this < 0; const bool __rneg = __r < 0; if (!__neg && !__rneg) _M_rep = _M_rep / __r._M_rep; else if (__neg && __rneg) _M_rep = -_M_rep / -__r._M_rep; else if (__neg && !__rneg) _M_rep = -(-_M_rep / __r._M_rep); else _M_rep = -(_M_rep / -__r._M_rep); return *this ; } constexpr __max_diff_type& operator%=(const __max_diff_type& __r) noexcept { do { if (std::__is_constant_evaluated() && !bool(__r != 0)) std::__glibcxx_assert_fail(); } while (false); if (*this >= 0 && __r > 0) _M_rep %= __r._M_rep; else *this -= (*this / __r) * __r; return *this; } constexpr __max_diff_type& operator<<=(const __max_diff_type& __r) noexcept { _M_rep.operator<<=(__r._M_rep); return *this; } constexpr __max_diff_type& operator>>=(const __max_diff_type& __r) noexcept { const auto __msb = _M_rep._M_msb; _M_rep >>= __r._M_rep; if (__msb) _M_rep |= ~(__max_size_type(-1) >> __r._M_rep); return *this; } constexpr __max_diff_type& operator&=(const __max_diff_type& __r) noexcept { _M_rep &= __r._M_rep; return *this; } constexpr __max_diff_type& operator|=(const __max_diff_type& __r) noexcept { _M_rep |= __r._M_rep; return *this; } constexpr __max_diff_type& operator^=(const __max_diff_type& __r) noexcept { _M_rep ^= __r._M_rep; return *this; } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator+=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a + __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator-=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a - __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator*=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a * __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator/=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a / __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator%=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a % __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator&=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a & __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator|=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a | __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator^=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a ^ __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator<<=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a << __b)); } template requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator>>=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a >> __b)); } friend constexpr __max_diff_type operator+(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l += __r; return __l; } friend constexpr __max_diff_type operator-(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l -= __r; return __l; } friend constexpr __max_diff_type operator*(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l *= __r; return __l; } friend constexpr __max_diff_type operator/(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l /= __r; return __l; } friend constexpr __max_diff_type operator%(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l %= __r; return __l; } friend constexpr __max_diff_type operator<<(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l <<= __r; return __l; } friend constexpr __max_diff_type operator>>(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l >>= __r; return __l; } friend constexpr __max_diff_type operator&(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l &= __r; return __l; } friend constexpr __max_diff_type operator|(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l |= __r; return __l; } friend constexpr __max_diff_type operator^(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l ^= __r; return __l; } friend constexpr bool operator==(const __max_diff_type& __l, const __max_diff_type& __r) noexcept { return __l._M_rep == __r._M_rep; } constexpr strong_ordering operator<=>(const __max_diff_type& __r) const noexcept { const auto __lsign = _M_rep._M_msb; const auto __rsign = __r._M_rep._M_msb; if (__lsign ^ __rsign) return __lsign ? strong_ordering::less : strong_ordering::greater; else return _M_rep <=> __r._M_rep; } # 755 "/usr/include/c++/15/bits/max_size_type.h" 3 private: __max_size_type _M_rep = 0; friend class __max_size_type; }; constexpr __max_size_type::__max_size_type(const __max_diff_type& __d) noexcept : __max_size_type(__d._M_rep) { } } } template<> struct numeric_limits { using _Sp = ranges::__detail::__max_size_type; static constexpr bool is_specialized = true; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int digits = __gnu_cxx::__int_traits<_Sp::__rep>::__digits + 1; static constexpr int digits10 = static_cast(digits * numbers::ln2 / numbers::ln10); static constexpr _Sp min() noexcept { return 0; } static constexpr _Sp max() noexcept { return _Sp(static_cast<_Sp::__rep>(-1), 1); } static constexpr _Sp lowest() noexcept { return min(); } }; template<> struct numeric_limits { using _Dp = ranges::__detail::__max_diff_type; using _Sp = ranges::__detail::__max_size_type; static constexpr bool is_specialized = true; static constexpr bool is_signed = true; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int digits = numeric_limits<_Sp>::digits - 1; static constexpr int digits10 = static_cast(digits * numbers::ln2 / numbers::ln10); static constexpr _Dp min() noexcept { return _Dp(_Sp(0, 1)); } static constexpr _Dp max() noexcept { return _Dp(_Sp(static_cast<_Sp::__rep>(-1), 0)); } static constexpr _Dp lowest() noexcept { return min(); } }; } # 42 "/usr/include/c++/15/bits/ranges_base.h" 2 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 43 "/usr/include/c++/15/bits/ranges_base.h" 2 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" # 58 "/usr/include/c++/15/bits/ranges_base.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace ranges { template inline constexpr bool disable_sized_range = false; template inline constexpr bool enable_borrowed_range = false; namespace __detail { constexpr __max_size_type __to_unsigned_like(__max_size_type __t) noexcept { return __t; } constexpr __max_size_type __to_unsigned_like(__max_diff_type __t) noexcept { return __max_size_type(__t); } template constexpr auto __to_unsigned_like(_Tp __t) noexcept { return static_cast>(__t); } # 94 "/usr/include/c++/15/bits/ranges_base.h" 3 template using __make_unsigned_like_t = decltype(__detail::__to_unsigned_like(std::declval<_Tp>())); template concept __maybe_borrowed_range = is_lvalue_reference_v<_Tp> || enable_borrowed_range>; } namespace __access { using std::ranges::__detail::__maybe_borrowed_range; using std::__detail::__range_iter_t; struct _Begin { private: template static constexpr bool _S_noexcept() { if constexpr (is_array_v>) return true; else if constexpr (__member_begin<_Tp>) return noexcept(__decay_copy(std::declval<_Tp&>().begin())); else return noexcept(__decay_copy(begin(std::declval<_Tp&>()))); } public: template<__maybe_borrowed_range _Tp> requires is_array_v> || __member_begin<_Tp> || __adl_begin<_Tp> constexpr auto operator()[[nodiscard]](_Tp&& __t) const noexcept(_S_noexcept<_Tp&>()) { if constexpr (is_array_v>) { static_assert(is_lvalue_reference_v<_Tp>); return __t + 0; } else if constexpr (__member_begin<_Tp>) return __t.begin(); else return begin(__t); } }; template concept __member_end = requires(_Tp& __t) { { __decay_copy(__t.end()) } -> sentinel_for<__range_iter_t<_Tp>>; }; void end() = delete; template concept __adl_end = __class_or_enum> && requires(_Tp& __t) { { __decay_copy(end(__t)) } -> sentinel_for<__range_iter_t<_Tp>>; }; struct _End { private: template static constexpr bool _S_noexcept() { if constexpr (is_bounded_array_v>) return true; else if constexpr (__member_end<_Tp>) return noexcept(__decay_copy(std::declval<_Tp&>().end())); else return noexcept(__decay_copy(end(std::declval<_Tp&>()))); } public: template<__maybe_borrowed_range _Tp> requires is_bounded_array_v> || __member_end<_Tp> || __adl_end<_Tp> constexpr auto operator()[[nodiscard]](_Tp&& __t) const noexcept(_S_noexcept<_Tp&>()) { if constexpr (is_bounded_array_v>) { static_assert(is_lvalue_reference_v<_Tp>); return __t + extent_v>; } else if constexpr (__member_end<_Tp>) return __t.end(); else return end(__t); } }; template concept __member_rbegin = requires(_Tp& __t) { { __decay_copy(__t.rbegin()) } -> input_or_output_iterator; }; void rbegin() = delete; template concept __adl_rbegin = __class_or_enum> && requires(_Tp& __t) { { __decay_copy(rbegin(__t)) } -> input_or_output_iterator; }; template concept __reversable = requires(_Tp& __t) { { _Begin{}(__t) } -> bidirectional_iterator; { _End{}(__t) } -> same_as; }; struct _RBegin { private: template static constexpr bool _S_noexcept() { if constexpr (__member_rbegin<_Tp>) return noexcept(__decay_copy(std::declval<_Tp&>().rbegin())); else if constexpr (__adl_rbegin<_Tp>) return noexcept(__decay_copy(rbegin(std::declval<_Tp&>()))); else { if constexpr (noexcept(_End{}(std::declval<_Tp&>()))) { using _It = decltype(_End{}(std::declval<_Tp&>())); return is_nothrow_copy_constructible_v<_It>; } else return false; } } public: template<__maybe_borrowed_range _Tp> requires __member_rbegin<_Tp> || __adl_rbegin<_Tp> || __reversable<_Tp> constexpr auto operator()[[nodiscard]](_Tp&& __t) const noexcept(_S_noexcept<_Tp&>()) { if constexpr (__member_rbegin<_Tp>) return __t.rbegin(); else if constexpr (__adl_rbegin<_Tp>) return rbegin(__t); else return std::make_reverse_iterator(_End{}(__t)); } }; template concept __member_rend = requires(_Tp& __t) { { __decay_copy(__t.rend()) } -> sentinel_for(__t)))>; }; void rend() = delete; template concept __adl_rend = __class_or_enum> && requires(_Tp& __t) { { __decay_copy(rend(__t)) } -> sentinel_for(__t)))>; }; struct _REnd { private: template static constexpr bool _S_noexcept() { if constexpr (__member_rend<_Tp>) return noexcept(__decay_copy(std::declval<_Tp&>().rend())); else if constexpr (__adl_rend<_Tp>) return noexcept(__decay_copy(rend(std::declval<_Tp&>()))); else { if constexpr (noexcept(_Begin{}(std::declval<_Tp&>()))) { using _It = decltype(_Begin{}(std::declval<_Tp&>())); return is_nothrow_copy_constructible_v<_It>; } else return false; } } public: template<__maybe_borrowed_range _Tp> requires __member_rend<_Tp> || __adl_rend<_Tp> || __reversable<_Tp> constexpr auto operator()[[nodiscard]](_Tp&& __t) const noexcept(_S_noexcept<_Tp&>()) { if constexpr (__member_rend<_Tp>) return __t.rend(); else if constexpr (__adl_rend<_Tp>) return rend(__t); else return std::make_reverse_iterator(_Begin{}(__t)); } }; template concept __member_size = !disable_sized_range> && requires(_Tp& __t) { { __decay_copy(__t.size()) } -> __detail::__is_integer_like; }; void size() = delete; template concept __adl_size = __class_or_enum> && !disable_sized_range> && requires(_Tp& __t) { { __decay_copy(size(__t)) } -> __detail::__is_integer_like; }; template concept __sentinel_size = requires(_Tp& __t) { requires (!is_unbounded_array_v>); { _Begin{}(__t) } -> forward_iterator; { _End{}(__t) } -> sized_sentinel_for; __detail::__to_unsigned_like(_End{}(__t) - _Begin{}(__t)); }; struct _Size { private: template static constexpr bool _S_noexcept() { if constexpr (is_bounded_array_v>) return true; else if constexpr (__member_size<_Tp>) return noexcept(__decay_copy(std::declval<_Tp&>().size())); else if constexpr (__adl_size<_Tp>) return noexcept(__decay_copy(size(std::declval<_Tp&>()))); else if constexpr (__sentinel_size<_Tp>) return noexcept(_End{}(std::declval<_Tp&>()) - _Begin{}(std::declval<_Tp&>())); } public: template requires is_bounded_array_v> || __member_size<_Tp> || __adl_size<_Tp> || __sentinel_size<_Tp> constexpr auto operator()[[nodiscard]](_Tp&& __t) const noexcept(_S_noexcept<_Tp&>()) { if constexpr (is_bounded_array_v>) return extent_v>; else if constexpr (__member_size<_Tp>) return __t.size(); else if constexpr (__adl_size<_Tp>) return size(__t); else if constexpr (__sentinel_size<_Tp>) return __detail::__to_unsigned_like(_End{}(__t) - _Begin{}(__t)); } }; struct _SSize { template requires requires (_Tp& __t) { _Size{}(__t); } constexpr auto operator()[[nodiscard]](_Tp&& __t) const noexcept(noexcept(_Size{}(__t))) { auto __size = _Size{}(__t); using __size_type = decltype(__size); if constexpr (integral<__size_type>) { using __gnu_cxx::__int_traits; if constexpr (__int_traits<__size_type>::__digits < __int_traits::__digits) return static_cast(__size); else return static_cast>(__size); } else return __detail::__max_diff_type(__size); } }; template concept __member_empty = requires(_Tp& __t) { bool(__t.empty()); }; template concept __size0_empty = requires(_Tp& __t) { _Size{}(__t) == 0; }; template concept __eq_iter_empty = requires(_Tp& __t) { requires (!is_unbounded_array_v>); { _Begin{}(__t) } -> forward_iterator; bool(_Begin{}(__t) == _End{}(__t)); }; struct _Empty { private: template static constexpr bool _S_noexcept() { if constexpr (__member_empty<_Tp>) return noexcept(bool(std::declval<_Tp&>().empty())); else if constexpr (__size0_empty<_Tp>) return noexcept(_Size{}(std::declval<_Tp&>()) == 0); else return noexcept(bool(_Begin{}(std::declval<_Tp&>()) == _End{}(std::declval<_Tp&>()))); } public: template requires __member_empty<_Tp> || __size0_empty<_Tp> || __eq_iter_empty<_Tp> constexpr bool operator()[[nodiscard]](_Tp&& __t) const noexcept(_S_noexcept<_Tp&>()) { if constexpr (__member_empty<_Tp>) return bool(__t.empty()); else if constexpr (__size0_empty<_Tp>) return _Size{}(__t) == 0; else return bool(_Begin{}(__t) == _End{}(__t)); } }; template concept __pointer_to_object = is_pointer_v<_Tp> && is_object_v>; template concept __member_data = requires(_Tp& __t) { { __decay_copy(__t.data()) } -> __pointer_to_object; }; template concept __begin_data = contiguous_iterator<__range_iter_t<_Tp>>; struct _Data { private: template static constexpr bool _S_noexcept() { if constexpr (__member_data<_Tp>) return noexcept(__decay_copy(std::declval<_Tp&>().data())); else return noexcept(_Begin{}(std::declval<_Tp&>())); } public: template<__maybe_borrowed_range _Tp> requires __member_data<_Tp> || __begin_data<_Tp> constexpr auto operator()[[nodiscard]](_Tp&& __t) const noexcept(_S_noexcept<_Tp>()) { if constexpr (__member_data<_Tp>) return __t.data(); else return std::to_address(_Begin{}(__t)); } }; } inline namespace _Cpo { inline constexpr ranges::__access::_Begin begin{}; inline constexpr ranges::__access::_End end{}; inline constexpr ranges::__access::_RBegin rbegin{}; inline constexpr ranges::__access::_REnd rend{}; inline constexpr ranges::__access::_Size size{}; inline constexpr ranges::__access::_SSize ssize{}; inline constexpr ranges::__access::_Empty empty{}; inline constexpr ranges::__access::_Data data{}; } template concept range = requires(_Tp& __t) { ranges::begin(__t); ranges::end(__t); }; template concept borrowed_range = range<_Tp> && __detail::__maybe_borrowed_range<_Tp>; template using iterator_t = std::__detail::__range_iter_t<_Tp>; template using sentinel_t = decltype(ranges::end(std::declval<_Range&>())); template using range_const_reference_t = iter_const_reference_t>; template using range_difference_t = iter_difference_t>; template using range_value_t = iter_value_t>; template using range_reference_t = iter_reference_t>; template using range_rvalue_reference_t = iter_rvalue_reference_t>; template using range_common_reference_t = iter_common_reference_t>; template concept sized_range = range<_Tp> && requires(_Tp& __t) { ranges::size(__t); }; template using range_size_t = decltype(ranges::size(std::declval<_Range&>())); template requires is_class_v<_Derived> && same_as<_Derived, remove_cv_t<_Derived>> class view_interface; namespace __detail { template requires (!same_as<_Tp, view_interface<_Up>>) void __is_derived_from_view_interface_fn(const _Tp&, const view_interface<_Up>&); template concept __is_derived_from_view_interface = requires (_Tp __t) { __is_derived_from_view_interface_fn(__t, __t); }; } struct view_base { }; template inline constexpr bool enable_view = derived_from<_Tp, view_base> || __detail::__is_derived_from_view_interface<_Tp>; template concept view = range<_Tp> && movable<_Tp> && enable_view<_Tp>; template concept output_range = range<_Range> && output_iterator, _Tp>; template concept input_range = range<_Tp> && input_iterator>; template concept forward_range = input_range<_Tp> && forward_iterator>; template concept bidirectional_range = forward_range<_Tp> && bidirectional_iterator>; template concept random_access_range = bidirectional_range<_Tp> && random_access_iterator>; template concept contiguous_range = random_access_range<_Tp> && contiguous_iterator> && requires(_Tp& __t) { { ranges::data(__t) } -> same_as>>; }; template concept common_range = range<_Tp> && same_as, sentinel_t<_Tp>>; template concept constant_range = input_range<_Tp> && std::__detail::__constant_iterator>; namespace __access { template constexpr auto& __possibly_const_range(_Range& __r) noexcept { if constexpr (input_range) return const_cast(__r); else return __r; } # 671 "/usr/include/c++/15/bits/ranges_base.h" 3 struct _CBegin { template<__maybe_borrowed_range _Tp> [[nodiscard]] constexpr auto operator()(_Tp&& __t) const noexcept(noexcept(std::make_const_iterator (ranges::begin(__access::__possibly_const_range(__t))))) requires requires { std::make_const_iterator (ranges::begin(__access::__possibly_const_range(__t))); } { auto& __r = __access::__possibly_const_range(__t); return const_iterator(ranges::begin(__r)); } # 697 "/usr/include/c++/15/bits/ranges_base.h" 3 }; struct _CEnd final { template<__maybe_borrowed_range _Tp> [[nodiscard]] constexpr auto operator()(_Tp&& __t) const noexcept(noexcept(std::make_const_sentinel (ranges::end(__access::__possibly_const_range(__t))))) requires requires { std::make_const_sentinel (ranges::end(__access::__possibly_const_range(__t))); } { auto& __r = __access::__possibly_const_range(__t); return const_sentinel(ranges::end(__r)); } # 725 "/usr/include/c++/15/bits/ranges_base.h" 3 }; struct _CRBegin { template<__maybe_borrowed_range _Tp> [[nodiscard]] constexpr auto operator()(_Tp&& __t) const noexcept(noexcept(std::make_const_iterator (ranges::rbegin(__access::__possibly_const_range(__t))))) requires requires { std::make_const_iterator (ranges::rbegin(__access::__possibly_const_range(__t))); } { auto& __r = __access::__possibly_const_range(__t); return const_iterator(ranges::rbegin(__r)); } # 753 "/usr/include/c++/15/bits/ranges_base.h" 3 }; struct _CREnd { template<__maybe_borrowed_range _Tp> [[nodiscard]] constexpr auto operator()(_Tp&& __t) const noexcept(noexcept(std::make_const_sentinel (ranges::rend(__access::__possibly_const_range(__t))))) requires requires { std::make_const_sentinel (ranges::rend(__access::__possibly_const_range(__t))); } { auto& __r = __access::__possibly_const_range(__t); return const_sentinel(ranges::rend(__r)); } # 781 "/usr/include/c++/15/bits/ranges_base.h" 3 }; struct _CData { template<__maybe_borrowed_range _Tp> [[nodiscard]] constexpr const auto* operator()(_Tp&& __t) const noexcept(noexcept(ranges::data(__access::__possibly_const_range(__t)))) requires requires { ranges::data(__access::__possibly_const_range(__t)); } { return ranges::data(__access::__possibly_const_range(__t)); } # 804 "/usr/include/c++/15/bits/ranges_base.h" 3 }; } inline namespace _Cpo { inline constexpr ranges::__access::_CBegin cbegin{}; inline constexpr ranges::__access::_CEnd cend{}; inline constexpr ranges::__access::_CRBegin crbegin{}; inline constexpr ranges::__access::_CREnd crend{}; inline constexpr ranges::__access::_CData cdata{}; } template using const_iterator_t = decltype(ranges::cbegin(std::declval<_Range&>())); template using const_sentinel_t = decltype(ranges::cend(std::declval<_Range&>())); namespace __detail { template inline constexpr bool __is_initializer_list = false; template inline constexpr bool __is_initializer_list> = true; } template concept viewable_range = range<_Tp> && ((view> && constructible_from, _Tp>) || (!view> && (is_lvalue_reference_v<_Tp> || (movable> && !__detail::__is_initializer_list>)))); struct __advance_fn final { template constexpr void operator()(_It& __it, iter_difference_t<_It> __n) const { if constexpr (random_access_iterator<_It>) __it += __n; else if constexpr (bidirectional_iterator<_It>) { if (__n > 0) { do { ++__it; } while (--__n); } else if (__n < 0) { do { --__it; } while (++__n); } } else { do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) std::__glibcxx_assert_fail(); } while (false); while (__n-- > 0) ++__it; } } template _Sent> constexpr void operator()(_It& __it, _Sent __bound) const { if constexpr (assignable_from<_It&, _Sent>) __it = std::move(__bound); else if constexpr (sized_sentinel_for<_Sent, _It>) (*this)(__it, __bound - __it); else { while (__it != __bound) ++__it; } } template _Sent> constexpr iter_difference_t<_It> operator()(_It& __it, iter_difference_t<_It> __n, _Sent __bound) const { if constexpr (sized_sentinel_for<_Sent, _It>) { const auto __diff = __bound - __it; if (__diff == 0) return __n; else if (__diff > 0 ? __n >= __diff : __n <= __diff) { (*this)(__it, __bound); return __n - __diff; } else if (__n != 0) [[likely]] { do { if (std::__is_constant_evaluated() && !bool((__n < 0) == (__diff < 0))) std::__glibcxx_assert_fail(); } while (false); (*this)(__it, __n); return 0; } else return 0; } else if (__it == __bound || __n == 0) return __n; else if (__n > 0) { iter_difference_t<_It> __m = 0; do { ++__it; ++__m; } while (__m != __n && __it != __bound); return __n - __m; } else if constexpr (bidirectional_iterator<_It> && same_as<_It, _Sent>) { iter_difference_t<_It> __m = 0; do { --__it; --__m; } while (__m != __n && __it != __bound); return __n - __m; } else { do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) std::__glibcxx_assert_fail(); } while (false); return __n; } } void operator&() const = delete; }; inline constexpr __advance_fn advance{}; struct __distance_fn final { template _Sent> requires (!sized_sentinel_for<_Sent, _It>) constexpr iter_difference_t<_It> operator()[[nodiscard]](_It __first, _Sent __last) const { iter_difference_t<_It> __n = 0; while (__first != __last) { ++__first; ++__n; } return __n; } template> _Sent> [[nodiscard]] constexpr iter_difference_t> operator()(_It&& __first, _Sent __last) const { return __last - static_cast&>(__first); } template [[nodiscard]] constexpr range_difference_t<_Range> operator()(_Range&& __r) const { if constexpr (sized_range<_Range>) return static_cast>(ranges::size(__r)); else return (*this)(ranges::begin(__r), ranges::end(__r)); } void operator&() const = delete; }; inline constexpr __distance_fn distance{}; struct __next_fn final { template [[nodiscard]] constexpr _It operator()(_It __x) const { ++__x; return __x; } template [[nodiscard]] constexpr _It operator()(_It __x, iter_difference_t<_It> __n) const { ranges::advance(__x, __n); return __x; } template _Sent> [[nodiscard]] constexpr _It operator()(_It __x, _Sent __bound) const { ranges::advance(__x, __bound); return __x; } template _Sent> [[nodiscard]] constexpr _It operator()(_It __x, iter_difference_t<_It> __n, _Sent __bound) const { ranges::advance(__x, __n, __bound); return __x; } void operator&() const = delete; }; inline constexpr __next_fn next{}; struct __prev_fn final { template [[nodiscard]] constexpr _It operator()(_It __x) const { --__x; return __x; } template [[nodiscard]] constexpr _It operator()(_It __x, iter_difference_t<_It> __n) const { ranges::advance(__x, -__n); return __x; } template [[nodiscard]] constexpr _It operator()(_It __x, iter_difference_t<_It> __n, _It __bound) const { ranges::advance(__x, -__n, __bound); return __x; } void operator&() const = delete; }; inline constexpr __prev_fn prev{}; struct dangling { constexpr dangling() noexcept = default; template constexpr dangling(_Args&&...) noexcept { } }; template using borrowed_iterator_t = __conditional_t, iterator_t<_Range>, dangling>; } struct from_range_t { explicit from_range_t() = default; }; inline constexpr from_range_t from_range{}; template struct pair; namespace __detail { template concept __container_compatible_range = ranges::input_range<_Rg> && convertible_to, _Tp>; template using __range_key_type = remove_const_t>>; template using __range_mapped_type = tuple_element_t<1, ranges::range_value_t<_Range>>; template using __range_to_alloc_type = pair, __range_mapped_type<_Range>>; } } #pragma GCC diagnostic pop # 35 "/usr/include/c++/15/bits/ranges_util.h" 2 3 # 43 "/usr/include/c++/15/bits/ranges_util.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace ranges { namespace __detail { template concept __simple_view = view<_Range> && range && same_as, iterator_t> && same_as, sentinel_t>; template concept __has_arrow = input_iterator<_It> && (is_pointer_v<_It> || requires(const _It __it) { __it.operator->(); }); using std::__detail::__different_from; } template requires is_class_v<_Derived> && same_as<_Derived, remove_cv_t<_Derived>> class view_interface { private: constexpr _Derived& _M_derived() noexcept { static_assert(derived_from<_Derived, view_interface<_Derived>>); static_assert(view<_Derived>); return static_cast<_Derived&>(*this); } constexpr const _Derived& _M_derived() const noexcept { static_assert(derived_from<_Derived, view_interface<_Derived>>); static_assert(view<_Derived>); return static_cast(*this); } static constexpr bool _S_bool(bool) noexcept; template static constexpr bool _S_empty(_Tp& __t) noexcept(noexcept(_S_bool(ranges::begin(__t) == ranges::end(__t)))) { return ranges::begin(__t) == ranges::end(__t); } template static constexpr auto _S_size(_Tp& __t) noexcept(noexcept(ranges::end(__t) - ranges::begin(__t))) { return ranges::end(__t) - ranges::begin(__t); } public: constexpr bool empty() noexcept(noexcept(_S_empty(_M_derived()))) requires forward_range<_Derived> && (!sized_range<_Derived>) { return _S_empty(_M_derived()); } constexpr bool empty() noexcept(noexcept(ranges::size(_M_derived()) == 0)) requires sized_range<_Derived> { return ranges::size(_M_derived()) == 0; } constexpr bool empty() const noexcept(noexcept(_S_empty(_M_derived()))) requires forward_range && (!sized_range) { return _S_empty(_M_derived()); } constexpr bool empty() const noexcept(noexcept(ranges::size(_M_derived()) == 0)) requires sized_range { return ranges::size(_M_derived()) == 0; } constexpr explicit operator bool() noexcept(noexcept(ranges::empty(_M_derived()))) requires requires { ranges::empty(_M_derived()); } { return !ranges::empty(_M_derived()); } constexpr explicit operator bool() const noexcept(noexcept(ranges::empty(_M_derived()))) requires requires { ranges::empty(_M_derived()); } { return !ranges::empty(_M_derived()); } constexpr auto data() noexcept(noexcept(ranges::begin(_M_derived()))) requires contiguous_iterator> { return std::to_address(ranges::begin(_M_derived())); } constexpr auto data() const noexcept(noexcept(ranges::begin(_M_derived()))) requires range && contiguous_iterator> { return std::to_address(ranges::begin(_M_derived())); } constexpr auto size() noexcept(noexcept(_S_size(_M_derived()))) requires forward_range<_Derived> && sized_sentinel_for, iterator_t<_Derived>> { return _S_size(_M_derived()); } constexpr auto size() const noexcept(noexcept(_S_size(_M_derived()))) requires forward_range && sized_sentinel_for, iterator_t> { return _S_size(_M_derived()); } constexpr decltype(auto) front() requires forward_range<_Derived> { do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); return *ranges::begin(_M_derived()); } constexpr decltype(auto) front() const requires forward_range { do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); return *ranges::begin(_M_derived()); } constexpr decltype(auto) back() requires bidirectional_range<_Derived> && common_range<_Derived> { do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); return *ranges::prev(ranges::end(_M_derived())); } constexpr decltype(auto) back() const requires bidirectional_range && common_range { do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); return *ranges::prev(ranges::end(_M_derived())); } template constexpr decltype(auto) operator[](range_difference_t<_Range> __n) { return ranges::begin(_M_derived())[__n]; } template constexpr decltype(auto) operator[](range_difference_t<_Range> __n) const { return ranges::begin(_M_derived())[__n]; } constexpr auto cbegin() requires input_range<_Derived> { return ranges::cbegin(_M_derived()); } constexpr auto cbegin() const requires input_range { return ranges::cbegin(_M_derived()); } constexpr auto cend() requires input_range<_Derived> { return ranges::cend(_M_derived()); } constexpr auto cend() const requires input_range { return ranges::cend(_M_derived()); } }; namespace __detail { template concept __uses_nonqualification_pointer_conversion = is_pointer_v<_From> && is_pointer_v<_To> && !convertible_to(*)[], remove_pointer_t<_To>(*)[]>; template concept __convertible_to_non_slicing = convertible_to<_From, _To> && !__uses_nonqualification_pointer_conversion, decay_t<_To>>; # 251 "/usr/include/c++/15/bits/ranges_util.h" 3 template concept __pair_like_convertible_from = !range<_Tp> && !is_reference_v<_Tp> && __pair_like<_Tp> && constructible_from<_Tp, _Up, _Vp> && __convertible_to_non_slicing<_Up, tuple_element_t<0, _Tp>> && convertible_to<_Vp, tuple_element_t<1, _Tp>>; } namespace views { struct _Drop; } enum class subrange_kind : bool { unsized, sized }; template _Sent = _It, subrange_kind _Kind = sized_sentinel_for<_Sent, _It> ? subrange_kind::sized : subrange_kind::unsized> requires (_Kind == subrange_kind::sized || !sized_sentinel_for<_Sent, _It>) class subrange : public view_interface> { private: static constexpr bool _S_store_size = _Kind == subrange_kind::sized && !sized_sentinel_for<_Sent, _It>; friend struct views::_Drop; _It _M_begin = _It(); [[no_unique_address]] _Sent _M_end = _Sent(); using __size_type = __detail::__make_unsigned_like_t>; template struct _Size { [[__gnu__::__always_inline__]] constexpr _Size(_Tp = {}) { } }; template struct _Size<_Tp, true> { [[__gnu__::__always_inline__]] constexpr _Size(_Tp __s = {}) : _M_size(__s) { } _Tp _M_size; }; [[no_unique_address]] _Size<__size_type> _M_size = {}; public: subrange() requires default_initializable<_It> = default; constexpr subrange(__detail::__convertible_to_non_slicing<_It> auto __i, _Sent __s) noexcept(is_nothrow_constructible_v<_It, decltype(__i)> && is_nothrow_constructible_v<_Sent, _Sent&>) requires (!_S_store_size) : _M_begin(std::move(__i)), _M_end(__s) { } constexpr subrange(__detail::__convertible_to_non_slicing<_It> auto __i, _Sent __s, __size_type __n) noexcept(is_nothrow_constructible_v<_It, decltype(__i)> && is_nothrow_constructible_v<_Sent, _Sent&>) requires (_Kind == subrange_kind::sized) : _M_begin(std::move(__i)), _M_end(__s), _M_size(__n) { } template<__detail::__different_from _Rng> requires borrowed_range<_Rng> && __detail::__convertible_to_non_slicing, _It> && convertible_to, _Sent> constexpr subrange(_Rng&& __r) noexcept(noexcept(subrange(__r, ranges::size(__r)))) requires _S_store_size && sized_range<_Rng> : subrange(__r, ranges::size(__r)) { } template<__detail::__different_from _Rng> requires borrowed_range<_Rng> && __detail::__convertible_to_non_slicing, _It> && convertible_to, _Sent> constexpr subrange(_Rng&& __r) noexcept(noexcept(subrange(ranges::begin(__r), ranges::end(__r)))) requires (!_S_store_size) : subrange(ranges::begin(__r), ranges::end(__r)) { } template requires __detail::__convertible_to_non_slicing, _It> && convertible_to, _Sent> constexpr subrange(_Rng&& __r, __size_type __n) noexcept(noexcept(subrange(ranges::begin(__r), ranges::end(__r), __n))) requires (_Kind == subrange_kind::sized) : subrange{ranges::begin(__r), ranges::end(__r), __n} { } template<__detail::__different_from _PairLike> requires __detail::__pair_like_convertible_from<_PairLike, const _It&, const _Sent&> constexpr operator _PairLike() const { return _PairLike(_M_begin, _M_end); } constexpr _It begin() const requires copyable<_It> { return _M_begin; } [[nodiscard]] constexpr _It begin() requires (!copyable<_It>) { return std::move(_M_begin); } constexpr _Sent end() const { return _M_end; } constexpr bool empty() const { return _M_begin == _M_end; } constexpr __size_type size() const requires (_Kind == subrange_kind::sized) { if constexpr (_S_store_size) return _M_size._M_size; else return __detail::__to_unsigned_like(_M_end - _M_begin); } [[nodiscard]] constexpr subrange next(iter_difference_t<_It> __n = 1) const & requires forward_iterator<_It> { auto __tmp = *this; __tmp.advance(__n); return __tmp; } [[nodiscard]] constexpr subrange next(iter_difference_t<_It> __n = 1) && { advance(__n); return std::move(*this); } [[nodiscard]] constexpr subrange prev(iter_difference_t<_It> __n = 1) const requires bidirectional_iterator<_It> { auto __tmp = *this; __tmp.advance(-__n); return __tmp; } constexpr subrange& advance(iter_difference_t<_It> __n) { if constexpr (bidirectional_iterator<_It>) if (__n < 0) { ranges::advance(_M_begin, __n); if constexpr (_S_store_size) _M_size._M_size += __detail::__to_unsigned_like(-__n); return *this; } do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) std::__glibcxx_assert_fail(); } while (false); auto __d = __n - ranges::advance(_M_begin, __n, _M_end); if constexpr (_S_store_size) _M_size._M_size -= __detail::__to_unsigned_like(__d); return *this; } }; template _Sent> subrange(_It, _Sent) -> subrange<_It, _Sent>; template _Sent> subrange(_It, _Sent, __detail::__make_unsigned_like_t>) -> subrange<_It, _Sent, subrange_kind::sized>; template subrange(_Rng&&) -> subrange, sentinel_t<_Rng>, (sized_range<_Rng> || sized_sentinel_for, iterator_t<_Rng>>) ? subrange_kind::sized : subrange_kind::unsized>; template subrange(_Rng&&, __detail::__make_unsigned_like_t>) -> subrange, sentinel_t<_Rng>, subrange_kind::sized>; template requires ((_Num == 0 && copyable<_It>) || _Num == 1) constexpr auto get(const subrange<_It, _Sent, _Kind>& __r) { if constexpr (_Num == 0) return __r.begin(); else return __r.end(); } template requires (_Num < 2) constexpr auto get(subrange<_It, _Sent, _Kind>&& __r) { if constexpr (_Num == 0) return __r.begin(); else return __r.end(); } template inline constexpr bool enable_borrowed_range> = true; template using borrowed_subrange_t = __conditional_t, subrange>, dangling>; template inline constexpr bool __detail::__is_subrange> = true; } template inline constexpr bool __is_tuple_like_v> = true; namespace ranges { struct __find_fn { template _Sent, typename _Proj = identity, typename _Tp > requires indirect_binary_predicate, const _Tp*> constexpr _Iter operator()(_Iter __first, _Sent __last, const _Tp& __value, _Proj __proj = {}) const { if constexpr (is_same_v<_Proj, identity>) if constexpr(__can_use_memchr_for_find, _Tp>) if constexpr (sized_sentinel_for<_Sent, _Iter>) if constexpr (contiguous_iterator<_Iter>) if (!is_constant_evaluated()) { using _Vt = iter_value_t<_Iter>; auto __n = __last - __first; if (static_cast<_Vt>(__value) == __value) [[likely]] if (__n > 0) { const size_t __nu = static_cast(__n); const int __ival = static_cast(__value); const void* __p0 = std::to_address(__first); if (auto __p1 = __builtin_memchr(__p0, __ival, __nu)) __n = (const char*)__p1 - (const char*)__p0; } return __first + __n; } while (__first != __last && !(std::__invoke(__proj, *__first) == __value)) ++__first; return __first; } template requires indirect_binary_predicate, _Proj>, const _Tp*> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, const _Tp& __value, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), __value, std::move(__proj)); } }; inline constexpr __find_fn find{}; struct __find_if_fn { template _Sent, typename _Proj = identity, indirect_unary_predicate> _Pred> constexpr _Iter operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { while (__first != __last && !(bool)std::__invoke(__pred, std::__invoke(__proj, *__first))) ++__first; return __first; } template, _Proj>> _Pred> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), std::move(__proj)); } }; inline constexpr __find_if_fn find_if{}; struct __find_if_not_fn { template _Sent, typename _Proj = identity, indirect_unary_predicate> _Pred> constexpr _Iter operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { while (__first != __last && (bool)std::__invoke(__pred, std::__invoke(__proj, *__first))) ++__first; return __first; } template, _Proj>> _Pred> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), std::move(__proj)); } }; inline constexpr __find_if_not_fn find_if_not{}; template struct in_in_result { [[no_unique_address]] _Iter1 in1; [[no_unique_address]] _Iter2 in2; template requires convertible_to && convertible_to constexpr operator in_in_result<_IIter1, _IIter2>() const & { return {in1, in2}; } template requires convertible_to<_Iter1, _IIter1> && convertible_to<_Iter2, _IIter2> constexpr operator in_in_result<_IIter1, _IIter2>() && { return {std::move(in1), std::move(in2)}; } }; template using mismatch_result = in_in_result<_Iter1, _Iter2>; struct __mismatch_fn { template _Sent1, input_iterator _Iter2, sentinel_for<_Iter2> _Sent2, typename _Pred = ranges::equal_to, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_comparable<_Iter1, _Iter2, _Pred, _Proj1, _Proj2> constexpr mismatch_result<_Iter1, _Iter2> operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { while (__first1 != __last1 && __first2 != __last2 && (bool)std::__invoke(__pred, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2))) { ++__first1; ++__first2; } return { std::move(__first1), std::move(__first2) }; } template requires indirectly_comparable, iterator_t<_Range2>, _Pred, _Proj1, _Proj2> constexpr mismatch_result, iterator_t<_Range2>> operator()(_Range1&& __r1, _Range2&& __r2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__pred), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __mismatch_fn mismatch{}; struct __search_fn { template _Sent1, forward_iterator _Iter2, sentinel_for<_Iter2> _Sent2, typename _Pred = ranges::equal_to, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_comparable<_Iter1, _Iter2, _Pred, _Proj1, _Proj2> constexpr subrange<_Iter1> operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { if (__first1 == __last1 || __first2 == __last2) return {__first1, __first1}; for (;;) { for (;;) { if (__first1 == __last1) return {__first1, __first1}; if (std::__invoke(__pred, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2))) break; ++__first1; } auto __cur1 = __first1; auto __cur2 = __first2; for (;;) { if (++__cur2 == __last2) return {__first1, ++__cur1}; if (++__cur1 == __last1) return {__cur1, __cur1}; if (!(bool)std::__invoke(__pred, std::__invoke(__proj1, *__cur1), std::__invoke(__proj2, *__cur2))) { ++__first1; break; } } } } template requires indirectly_comparable, iterator_t<_Range2>, _Pred, _Proj1, _Proj2> constexpr borrowed_subrange_t<_Range1> operator()(_Range1&& __r1, _Range2&& __r2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__pred), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __search_fn search{}; struct __min_fn { template> _Comp = ranges::less> constexpr const _Tp& operator()(const _Tp& __a, const _Tp& __b, _Comp __comp = {}, _Proj __proj = {}) const { if (std::__invoke(__comp, std::__invoke(__proj, __b), std::__invoke(__proj, __a))) return __b; else return __a; } template, _Proj>> _Comp = ranges::less> requires indirectly_copyable_storable, range_value_t<_Range>*> constexpr range_value_t<_Range> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { auto __first = ranges::begin(__r); auto __last = ranges::end(__r); do { if (std::__is_constant_evaluated() && !bool(__first != __last)) std::__glibcxx_assert_fail(); } while (false); auto __result = *__first; while (++__first != __last) { auto&& __tmp = *__first; if (std::__invoke(__comp, std::__invoke(__proj, __tmp), std::__invoke(__proj, __result))) __result = std::forward(__tmp); } return __result; } template> _Comp = ranges::less> constexpr _Tp operator()(initializer_list<_Tp> __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::subrange(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __min_fn min{}; struct __adjacent_find_fn { template _Sent, typename _Proj = identity, indirect_binary_predicate, projected<_Iter, _Proj>> _Pred = ranges::equal_to> constexpr _Iter operator()(_Iter __first, _Sent __last, _Pred __pred = {}, _Proj __proj = {}) const { if (__first == __last) return __first; auto __next = __first; for (; ++__next != __last; __first = __next) { if (std::__invoke(__pred, std::__invoke(__proj, *__first), std::__invoke(__proj, *__next))) return __first; } return __next; } template, _Proj>, projected, _Proj>> _Pred = ranges::equal_to> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Pred __pred = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), std::move(__proj)); } }; inline constexpr __adjacent_find_fn adjacent_find{}; } using ranges::get; template struct tuple_size> : integral_constant { }; template struct tuple_element<0, ranges::subrange<_Iter, _Sent, _Kind>> { using type = _Iter; }; template struct tuple_element<1, ranges::subrange<_Iter, _Sent, _Kind>> { using type = _Sent; }; template struct tuple_element<0, const ranges::subrange<_Iter, _Sent, _Kind>> { using type = _Iter; }; template struct tuple_element<1, const ranges::subrange<_Iter, _Sent, _Kind>> { using type = _Sent; }; } # 47 "/usr/include/c++/15/tuple" 2 3 # 57 "/usr/include/c++/15/tuple" 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 58 "/usr/include/c++/15/tuple" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template class tuple; template struct __is_empty_non_tuple : is_empty<_Tp> { }; template struct __is_empty_non_tuple> : false_type { }; template using __empty_not_final = __conditional_t<__is_final(_Tp), false_type, __is_empty_non_tuple<_Tp>>; template::value> struct _Head_base; template struct _Head_base<_Idx, _Head, true> { constexpr _Head_base() : _M_head_impl() { } constexpr _Head_base(const _Head& __h) : _M_head_impl(__h) { } constexpr _Head_base(const _Head_base&) = default; constexpr _Head_base(_Head_base&&) = default; template constexpr _Head_base(_UHead&& __h) : _M_head_impl(std::forward<_UHead>(__h)) { } constexpr _Head_base(allocator_arg_t, __uses_alloc0) : _M_head_impl() { } template constexpr _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) : _M_head_impl(allocator_arg, *__a._M_a) { } template constexpr _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) : _M_head_impl(*__a._M_a) { } template constexpr _Head_base(__uses_alloc0, _UHead&& __uhead) : _M_head_impl(std::forward<_UHead>(__uhead)) { } template constexpr _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) { } template constexpr _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } static constexpr _Head& _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } static constexpr const _Head& _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } [[__no_unique_address__]] _Head _M_head_impl; }; # 199 "/usr/include/c++/15/tuple" 3 template struct _Head_base<_Idx, _Head, false> { constexpr _Head_base() : _M_head_impl() { } constexpr _Head_base(const _Head& __h) : _M_head_impl(__h) { } constexpr _Head_base(const _Head_base&) = default; constexpr _Head_base(_Head_base&&) = default; template constexpr _Head_base(_UHead&& __h) : _M_head_impl(std::forward<_UHead>(__h)) { } constexpr _Head_base(allocator_arg_t, __uses_alloc0) : _M_head_impl() { } template constexpr _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) : _M_head_impl(allocator_arg, *__a._M_a) { } template constexpr _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) : _M_head_impl(*__a._M_a) { } template constexpr _Head_base(__uses_alloc0, _UHead&& __uhead) : _M_head_impl(std::forward<_UHead>(__uhead)) { } template constexpr _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) { } template constexpr _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } static constexpr _Head& _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } static constexpr const _Head& _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } _Head _M_head_impl; }; struct __tuple_like_tag_t { explicit __tuple_like_tag_t() = default; }; template constexpr _Cat __tuple_cmp(const _Tp& __t, const _Up& __u, _IndexSeq); # 272 "/usr/include/c++/15/tuple" 3 template struct _Tuple_impl; template struct _Tuple_impl<_Idx, _Head, _Tail...> : public _Tuple_impl<_Idx + 1, _Tail...>, private _Head_base<_Idx, _Head> { template friend struct _Tuple_impl; typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; typedef _Head_base<_Idx, _Head> _Base; static constexpr _Head& _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } static constexpr const _Head& _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } static constexpr _Inherited& _M_tail(_Tuple_impl& __t) noexcept { return __t; } static constexpr const _Inherited& _M_tail(const _Tuple_impl& __t) noexcept { return __t; } constexpr _Tuple_impl() : _Inherited(), _Base() { } explicit constexpr _Tuple_impl(const _Head& __head, const _Tail&... __tail) : _Inherited(__tail...), _Base(__head) { } template> explicit constexpr _Tuple_impl(_UHead&& __head, _UTail&&... __tail) : _Inherited(std::forward<_UTail>(__tail)...), _Base(std::forward<_UHead>(__head)) { } constexpr _Tuple_impl(const _Tuple_impl&) = default; _Tuple_impl& operator=(const _Tuple_impl&) = delete; _Tuple_impl(_Tuple_impl&&) = default; template constexpr _Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in) : _Inherited(_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), _Base(_Tuple_impl<_Idx, _UElements...>::_M_head(__in)) { } template constexpr _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) : _Inherited(std::move (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), _Base(std::forward<_UHead> (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) { } template constexpr _Tuple_impl(_Tuple_impl<_Idx, _UElements...>& __in) : _Inherited(_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), _Base(_Tuple_impl<_Idx, _UElements...>::_M_head(__in)) { } template constexpr _Tuple_impl(const _Tuple_impl<_Idx, _UHead, _UTails...>&& __in) : _Inherited(std::move (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), _Base(std::forward (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) { } template constexpr _Tuple_impl(__tuple_like_tag_t, _UTuple&& __u, index_sequence<_Is...>) : _Tuple_impl(std::get<_Is>(std::forward<_UTuple>(__u))...) { } template constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) : _Inherited(__tag, __a), _Base(__tag, __use_alloc<_Head>(__a)) { } template constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, const _Head& __head, const _Tail&... __tail) : _Inherited(__tag, __a, __tail...), _Base(__use_alloc<_Head, _Alloc, _Head>(__a), __head) { } template> constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, _UHead&& __head, _UTail&&... __tail) : _Inherited(__tag, __a, std::forward<_UTail>(__tail)...), _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), std::forward<_UHead>(__head)) { } template constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, const _Tuple_impl& __in) : _Inherited(__tag, __a, _M_tail(__in)), _Base(__use_alloc<_Head, _Alloc, _Head>(__a), _M_head(__in)) { } template constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, _Tuple_impl&& __in) : _Inherited(__tag, __a, std::move(_M_tail(__in))), _Base(__use_alloc<_Head, _Alloc, _Head>(__a), std::forward<_Head>(_M_head(__in))) { } template constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, const _Tuple_impl<_Idx, _UHead, _UTails...>& __in) : _Inherited(__tag, __a, _Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)), _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), _Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)) { } template constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, _Tuple_impl<_Idx, _UHead, _UTails...>&& __in) : _Inherited(__tag, __a, std::move (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), std::forward<_UHead> (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) { } template constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, _Tuple_impl<_Idx, _UHead, _UTails...>& __in) : _Inherited(__tag, __a, _Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)), _Base(__use_alloc<_Head, _Alloc, _UHead&>(__a), _Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)) { } template constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, const _Tuple_impl<_Idx, _UHead, _UTails...>&& __in) : _Inherited(__tag, __a, std::move (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), _Base(__use_alloc<_Head, _Alloc, const _UHead>(__a), std::forward (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) { } template constexpr _Tuple_impl(__tuple_like_tag_t, allocator_arg_t __tag, const _Alloc& __a, _UTuple&& __u, index_sequence<_Is...>) : _Tuple_impl(__tag, __a, std::get<_Is>(std::forward<_UTuple>(__u))...) { } template constexpr void _M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) { _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); _M_tail(*this)._M_assign( _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); } template constexpr void _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) { _M_head(*this) = std::forward<_UHead> (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); _M_tail(*this)._M_assign( std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); } template constexpr void _M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) const { _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); _M_tail(*this)._M_assign( _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); } template constexpr void _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) const { _M_head(*this) = std::forward<_UHead> (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); _M_tail(*this)._M_assign( std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); } template constexpr void _M_assign(__tuple_like_tag_t __tag, _UTuple&& __u) { _M_head(*this) = std::get<_Idx>(std::forward<_UTuple>(__u)); _M_tail(*this)._M_assign(__tag, std::forward<_UTuple>(__u)); } template constexpr void _M_assign(__tuple_like_tag_t __tag, _UTuple&& __u) const { _M_head(*this) = std::get<_Idx>(std::forward<_UTuple>(__u)); _M_tail(*this)._M_assign(__tag, std::forward<_UTuple>(__u)); } protected: constexpr void _M_swap(_Tuple_impl& __in) { using std::swap; swap(_M_head(*this), _M_head(__in)); _Inherited::_M_swap(_M_tail(__in)); } constexpr void _M_swap(const _Tuple_impl& __in) const { using std::swap; swap(_M_head(*this), _M_head(__in)); _Inherited::_M_swap(_M_tail(__in)); } }; template struct _Tuple_impl<_Idx, _Head> : private _Head_base<_Idx, _Head> { template friend struct _Tuple_impl; typedef _Head_base<_Idx, _Head> _Base; static constexpr _Head& _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } static constexpr const _Head& _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } constexpr _Tuple_impl() : _Base() { } explicit constexpr _Tuple_impl(const _Head& __head) : _Base(__head) { } template explicit constexpr _Tuple_impl(_UHead&& __head) : _Base(std::forward<_UHead>(__head)) { } constexpr _Tuple_impl(const _Tuple_impl&) = default; _Tuple_impl& operator=(const _Tuple_impl&) = delete; constexpr _Tuple_impl(_Tuple_impl&& __in) noexcept(is_nothrow_move_constructible<_Head>::value) : _Base(static_cast<_Base&&>(__in)) { } template constexpr _Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in) : _Base(_Tuple_impl<_Idx, _UHead>::_M_head(__in)) { } template constexpr _Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in) : _Base(std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) { } template constexpr _Tuple_impl(_Tuple_impl<_Idx, _UHead>& __in) : _Base(_Tuple_impl<_Idx, _UHead>::_M_head(__in)) { } template constexpr _Tuple_impl(const _Tuple_impl<_Idx, _UHead>&& __in) : _Base(std::forward(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) { } template constexpr _Tuple_impl(__tuple_like_tag_t, _UTuple&& __u, index_sequence<0>) : _Tuple_impl(std::get<0>(std::forward<_UTuple>(__u))) { } template constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) : _Base(__tag, __use_alloc<_Head>(__a)) { } template constexpr _Tuple_impl(allocator_arg_t, const _Alloc& __a, const _Head& __head) : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), __head) { } template constexpr _Tuple_impl(allocator_arg_t, const _Alloc& __a, _UHead&& __head) : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), std::forward<_UHead>(__head)) { } template constexpr _Tuple_impl(allocator_arg_t, const _Alloc& __a, const _Tuple_impl& __in) : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), _M_head(__in)) { } template constexpr _Tuple_impl(allocator_arg_t, const _Alloc& __a, _Tuple_impl&& __in) : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), std::forward<_Head>(_M_head(__in))) { } template constexpr _Tuple_impl(allocator_arg_t, const _Alloc& __a, const _Tuple_impl<_Idx, _UHead>& __in) : _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), _Tuple_impl<_Idx, _UHead>::_M_head(__in)) { } template constexpr _Tuple_impl(allocator_arg_t, const _Alloc& __a, _Tuple_impl<_Idx, _UHead>&& __in) : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) { } template constexpr _Tuple_impl(allocator_arg_t, const _Alloc& __a, _Tuple_impl<_Idx, _UHead>& __in) : _Base(__use_alloc<_Head, _Alloc, _UHead&>(__a), _Tuple_impl<_Idx, _UHead>::_M_head(__in)) { } template constexpr _Tuple_impl(allocator_arg_t, const _Alloc& __a, const _Tuple_impl<_Idx, _UHead>&& __in) : _Base(__use_alloc<_Head, _Alloc, const _UHead>(__a), std::forward(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) { } template constexpr _Tuple_impl(__tuple_like_tag_t, allocator_arg_t __tag, const _Alloc& __a, _UTuple&& __u, index_sequence<0>) : _Tuple_impl(__tag, __a, std::get<0>(std::forward<_UTuple>(__u))) { } template constexpr void _M_assign(const _Tuple_impl<_Idx, _UHead>& __in) { _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); } template constexpr void _M_assign(_Tuple_impl<_Idx, _UHead>&& __in) { _M_head(*this) = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); } template constexpr void _M_assign(const _Tuple_impl<_Idx, _UHead>& __in) const { _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); } template constexpr void _M_assign(_Tuple_impl<_Idx, _UHead>&& __in) const { _M_head(*this) = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); } template constexpr void _M_assign(__tuple_like_tag_t, _UTuple&& __u) { _M_head(*this) = std::get<_Idx>(std::forward<_UTuple>(__u)); } template constexpr void _M_assign(__tuple_like_tag_t, _UTuple&& __u) const { _M_head(*this) = std::get<_Idx>(std::forward<_UTuple>(__u)); } protected: constexpr void _M_swap(_Tuple_impl& __in) { using std::swap; swap(_M_head(*this), _M_head(__in)); } constexpr void _M_swap(const _Tuple_impl& __in) const { using std::swap; swap(_M_head(*this), _M_head(__in)); } }; template struct _TupleConstraints { template using __constructible = __and_...>; template using __convertible = __and_...>; template static constexpr bool __is_implicitly_constructible() { return __and_<__constructible<_UTypes...>, __convertible<_UTypes...> >::value; } template static constexpr bool __is_explicitly_constructible() { return __and_<__constructible<_UTypes...>, __not_<__convertible<_UTypes...>> >::value; } static constexpr bool __is_implicitly_default_constructible() { return __and_... >::value; } static constexpr bool __is_explicitly_default_constructible() { return __and_..., __not_<__and_< std::__is_implicitly_default_constructible<_Types>...> >>::value; } }; template struct _TupleConstraints { template static constexpr bool __is_implicitly_constructible() { return false; } template static constexpr bool __is_explicitly_constructible() { return false; } }; template class tuple : public _Tuple_impl<0, _Elements...> { using _Inherited = _Tuple_impl<0, _Elements...>; template static consteval bool __constructible() { if constexpr (sizeof...(_UTypes) == sizeof...(_Elements)) return __and_v...>; else return false; } template static consteval bool __nothrow_constructible() { if constexpr (sizeof...(_UTypes) == sizeof...(_Elements)) return __and_v...>; else return false; } template static consteval bool __convertible() { if constexpr (sizeof...(_UTypes) == sizeof...(_Elements)) return __and_v...>; else return false; } template static consteval bool __disambiguating_constraint() { if constexpr (sizeof...(_Elements) != sizeof...(_UTypes)) return false; else if constexpr (sizeof...(_Elements) == 1) { using _U0 = typename _Nth_type<0, _UTypes...>::type; return !is_same_v, tuple>; } else if constexpr (sizeof...(_Elements) < 4) { using _U0 = typename _Nth_type<0, _UTypes...>::type; if constexpr (!is_same_v, allocator_arg_t>) return true; else { using _T0 = typename _Nth_type<0, _Elements...>::type; return is_same_v, allocator_arg_t>; } } return true; } template static consteval bool __use_other_ctor() { if constexpr (sizeof...(_Elements) != 1) return false; else if constexpr (is_same_v, tuple>) return true; else { using _Tp = typename _Nth_type<0, _Elements...>::type; if constexpr (is_convertible_v<_Tuple, _Tp>) return true; else if constexpr (is_constructible_v<_Tp, _Tuple>) return true; } return false; } template static consteval bool __dangles() { return (__reference_constructs_from_temporary(_Elements, _Up&&) || ...); } template static consteval bool __dangles_from_tuple_like() { return [](index_sequence<_Is...>) { return __dangles(std::declval<_UTuple>()))...>(); }(index_sequence_for<_Elements...>{}); } template static consteval bool __constructible_from_tuple_like() { return [](index_sequence<_Is...>) { return __constructible(std::declval<_UTuple>()))...>(); }(index_sequence_for<_Elements...>{}); } template static consteval bool __convertible_from_tuple_like() { return [](index_sequence<_Is...>) { return __convertible(std::declval<_UTuple>()))...>(); }(index_sequence_for<_Elements...>{}); } public: constexpr explicit(!(__is_implicitly_default_constructible_v<_Elements> && ...)) tuple() noexcept((is_nothrow_default_constructible_v<_Elements> && ...)) requires (is_default_constructible_v<_Elements> && ...) : _Inherited() { } template constexpr explicit(!__convertible()) tuple(const type_identity_t<_Elements>&... __elements) noexcept(__nothrow_constructible()) requires (__constructible()) : _Inherited(__elements...) { } template requires (__disambiguating_constraint<_UTypes...>()) && (__constructible<_UTypes...>()) && (!__dangles<_UTypes...>()) constexpr explicit(!__convertible<_UTypes...>()) tuple(_UTypes&&... __u) noexcept(__nothrow_constructible<_UTypes...>()) : _Inherited(std::forward<_UTypes>(__u)...) { } template requires (__disambiguating_constraint<_UTypes...>()) && (__constructible<_UTypes...>()) && (__dangles<_UTypes...>()) tuple(_UTypes&&...) = delete; constexpr tuple(const tuple&) = default; constexpr tuple(tuple&&) = default; template requires (__constructible()) && (!__use_other_ctor&>()) && (!__dangles()) constexpr explicit(!__convertible()) tuple(const tuple<_UTypes...>& __u) noexcept(__nothrow_constructible()) : _Inherited(static_cast&>(__u)) { } template requires (__constructible()) && (!__use_other_ctor&>()) && (__dangles()) tuple(const tuple<_UTypes...>&) = delete; template requires (__constructible<_UTypes...>()) && (!__use_other_ctor>()) && (!__dangles<_UTypes...>()) constexpr explicit(!__convertible<_UTypes...>()) tuple(tuple<_UTypes...>&& __u) noexcept(__nothrow_constructible<_UTypes...>()) : _Inherited(static_cast<_Tuple_impl<0, _UTypes...>&&>(__u)) { } template requires (__constructible<_UTypes...>()) && (!__use_other_ctor>()) && (__dangles<_UTypes...>()) tuple(tuple<_UTypes...>&&) = delete; template requires (__constructible<_UTypes&...>()) && (!__use_other_ctor&>()) && (!__dangles<_UTypes&...>()) constexpr explicit(!__convertible<_UTypes&...>()) tuple(tuple<_UTypes...>& __u) noexcept(__nothrow_constructible<_UTypes&...>()) : _Inherited(static_cast<_Tuple_impl<0, _UTypes...>&>(__u)) { } template requires (__constructible<_UTypes&...>()) && (!__use_other_ctor&>()) && (__dangles<_UTypes&...>()) tuple(tuple<_UTypes...>&) = delete; template requires (__constructible()) && (!__use_other_ctor>()) && (!__dangles()) constexpr explicit(!__convertible()) tuple(const tuple<_UTypes...>&& __u) noexcept(__nothrow_constructible()) : _Inherited(static_cast&&>(__u)) { } template requires (__constructible()) && (!__use_other_ctor>()) && (__dangles()) tuple(const tuple<_UTypes...>&&) = delete; template requires (sizeof...(_Elements) == 2) && (__constructible()) && (!__dangles()) constexpr explicit(!__convertible()) tuple(const pair<_U1, _U2>& __u) noexcept(__nothrow_constructible()) : _Inherited(__u.first, __u.second) { } template requires (sizeof...(_Elements) == 2) && (__constructible()) && (__dangles()) tuple(const pair<_U1, _U2>&) = delete; template requires (sizeof...(_Elements) == 2) && (__constructible<_U1, _U2>()) && (!__dangles<_U1, _U2>()) constexpr explicit(!__convertible<_U1, _U2>()) tuple(pair<_U1, _U2>&& __u) noexcept(__nothrow_constructible<_U1, _U2>()) : _Inherited(std::forward<_U1>(__u.first), std::forward<_U2>(__u.second)) { } template requires (sizeof...(_Elements) == 2) && (__constructible<_U1, _U2>()) && (__dangles<_U1, _U2>()) tuple(pair<_U1, _U2>&&) = delete; template requires (sizeof...(_Elements) == 2) && (__constructible<_U1&, _U2&>()) && (!__dangles<_U1&, _U2&>()) constexpr explicit(!__convertible<_U1&, _U2&>()) tuple(pair<_U1, _U2>& __u) noexcept(__nothrow_constructible<_U1&, _U2&>()) : _Inherited(__u.first, __u.second) { } template requires (sizeof...(_Elements) == 2) && (__constructible<_U1&, _U2&>()) && (__dangles<_U1&, _U2&>()) tuple(pair<_U1, _U2>&) = delete; template requires (sizeof...(_Elements) == 2) && (__constructible()) && (!__dangles()) constexpr explicit(!__convertible()) tuple(const pair<_U1, _U2>&& __u) noexcept(__nothrow_constructible()) : _Inherited(std::forward(__u.first), std::forward(__u.second)) { } template requires (sizeof...(_Elements) == 2) && (__constructible()) && (__dangles()) tuple(const pair<_U1, _U2>&&) = delete; template<__eligible_tuple_like _UTuple> requires (__constructible_from_tuple_like<_UTuple>()) && (!__use_other_ctor<_UTuple>()) && (!__dangles_from_tuple_like<_UTuple>()) constexpr explicit(!__convertible_from_tuple_like<_UTuple>()) tuple(_UTuple&& __u) : _Inherited(__tuple_like_tag_t{}, std::forward<_UTuple>(__u), index_sequence_for<_Elements...>{}) { } template<__eligible_tuple_like _UTuple> requires (__constructible_from_tuple_like<_UTuple>()) && (!__use_other_ctor<_UTuple>()) && (__dangles_from_tuple_like<_UTuple>()) tuple(_UTuple&&) = delete; template constexpr explicit(!(__is_implicitly_default_constructible_v<_Elements> && ...)) tuple(allocator_arg_t __tag, const _Alloc& __a) requires (is_default_constructible_v<_Elements> && ...) : _Inherited(__tag, __a) { } template constexpr explicit(!__convertible()) tuple(allocator_arg_t __tag, const _Alloc& __a, const type_identity_t<_Elements>&... __elements) requires (__constructible()) : _Inherited(__tag, __a, __elements...) { } template requires (__disambiguating_constraint<_UTypes...>()) && (__constructible<_UTypes...>()) && (!__dangles<_UTypes...>()) constexpr explicit(!__convertible<_UTypes...>()) tuple(allocator_arg_t __tag, const _Alloc& __a, _UTypes&&... __u) : _Inherited(__tag, __a, std::forward<_UTypes>(__u)...) { } template requires (__disambiguating_constraint<_UTypes...>()) && (__constructible<_UTypes...>()) && (__dangles<_UTypes...>()) tuple(allocator_arg_t, const _Alloc&, _UTypes&&...) = delete; template constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __u) : _Inherited(__tag, __a, static_cast(__u)) { } template requires (__constructible<_Elements...>()) constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __u) : _Inherited(__tag, __a, static_cast<_Inherited&&>(__u)) { } template requires (__constructible()) && (!__use_other_ctor&>()) && (!__dangles()) constexpr explicit(!__convertible()) tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple<_UTypes...>& __u) : _Inherited(__tag, __a, static_cast&>(__u)) { } template requires (__constructible()) && (!__use_other_ctor&>()) && (__dangles()) tuple(allocator_arg_t, const _Alloc&, const tuple<_UTypes...>&) = delete; template requires (__constructible<_UTypes...>()) && (!__use_other_ctor>()) && (!__dangles<_UTypes...>()) constexpr explicit(!__use_other_ctor>()) tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_UTypes...>&& __u) : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _UTypes...>&&>(__u)) { } template requires (__constructible<_UTypes...>()) && (!__use_other_ctor>()) && (__dangles<_UTypes...>()) tuple(allocator_arg_t, const _Alloc&, tuple<_UTypes...>&&) = delete; template requires (__constructible<_UTypes&...>()) && (!__use_other_ctor&>()) && (!__dangles<_UTypes&...>()) constexpr explicit(!__convertible<_UTypes&...>()) tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_UTypes...>& __u) : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _UTypes...>&>(__u)) { } template requires (__constructible<_UTypes&...>()) && (!__use_other_ctor&>()) && (__dangles<_UTypes&...>()) tuple(allocator_arg_t, const _Alloc&, tuple<_UTypes...>&) = delete; template requires (__constructible()) && (!__use_other_ctor>()) && (!__dangles()) constexpr explicit(!__convertible()) tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple<_UTypes...>&& __u) : _Inherited(__tag, __a, static_cast&&>(__u)) { } template requires (__constructible()) && (!__use_other_ctor>()) && (__dangles()) tuple(allocator_arg_t, const _Alloc&, const tuple<_UTypes...>&&) = delete; template requires (sizeof...(_Elements) == 2) && (__constructible()) && (!__dangles()) constexpr explicit(!__convertible()) tuple(allocator_arg_t __tag, const _Alloc& __a, const pair<_U1, _U2>& __u) noexcept(__nothrow_constructible()) : _Inherited(__tag, __a, __u.first, __u.second) { } template requires (sizeof...(_Elements) == 2) && (__constructible()) && (__dangles()) tuple(allocator_arg_t, const _Alloc&, const pair<_U1, _U2>&) = delete; template requires (sizeof...(_Elements) == 2) && (__constructible<_U1, _U2>()) && (!__dangles<_U1, _U2>()) constexpr explicit(!__convertible<_U1, _U2>()) tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __u) noexcept(__nothrow_constructible<_U1, _U2>()) : _Inherited(__tag, __a, std::move(__u.first), std::move(__u.second)) { } template requires (sizeof...(_Elements) == 2) && (__constructible<_U1, _U2>()) && (__dangles<_U1, _U2>()) tuple(allocator_arg_t, const _Alloc&, pair<_U1, _U2>&&) = delete; template requires (sizeof...(_Elements) == 2) && (__constructible<_U1&, _U2&>()) && (!__dangles<_U1&, _U2&>()) constexpr explicit(!__convertible<_U1&, _U2&>()) tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>& __u) noexcept(__nothrow_constructible<_U1&, _U2&>()) : _Inherited(__tag, __a, __u.first, __u.second) { } template requires (sizeof...(_Elements) == 2) && (__constructible<_U1&, _U2&>()) && (__dangles<_U1&, _U2&>()) tuple(allocator_arg_t, const _Alloc&, pair<_U1, _U2>&) = delete; template requires (sizeof...(_Elements) == 2) && (__constructible()) && (!__dangles()) constexpr explicit(!__convertible()) tuple(allocator_arg_t __tag, const _Alloc& __a, const pair<_U1, _U2>&& __u) noexcept(__nothrow_constructible()) : _Inherited(__tag, __a, std::move(__u.first), std::move(__u.second)) { } template requires (sizeof...(_Elements) == 2) && (__constructible()) && (__dangles()) tuple(allocator_arg_t, const _Alloc&, const pair<_U1, _U2>&&) = delete; template _UTuple> requires (__constructible_from_tuple_like<_UTuple>()) && (!__use_other_ctor<_UTuple>()) && (!__dangles_from_tuple_like<_UTuple>()) constexpr explicit(!__convertible_from_tuple_like<_UTuple>()) tuple(allocator_arg_t __tag, const _Alloc& __a, _UTuple&& __u) : _Inherited(__tuple_like_tag_t{}, __tag, __a, std::forward<_UTuple>(__u), index_sequence_for<_Elements...>{}) { } template _UTuple> requires (__constructible_from_tuple_like<_UTuple>()) && (!__use_other_ctor<_UTuple>()) && (__dangles_from_tuple_like<_UTuple>()) tuple(allocator_arg_t, const _Alloc&, _UTuple&&) = delete; # 1655 "/usr/include/c++/15/tuple" 3 private: template static consteval bool __assignable() { if constexpr (sizeof...(_UTypes) == sizeof...(_Elements)) return __and_v...>; else return false; } template static consteval bool __nothrow_assignable() { if constexpr (sizeof...(_UTypes) == sizeof...(_Elements)) return __and_v...>; else return false; } template static consteval bool __const_assignable() { if constexpr (sizeof...(_UTypes) == sizeof...(_Elements)) return __and_v...>; else return false; } template static consteval bool __assignable_from_tuple_like() { return [](index_sequence<_Is...>) { return __assignable(std::declval<_UTuple>()))...>(); }(index_sequence_for<_Elements...>{}); } template static consteval bool __const_assignable_from_tuple_like() { return [](index_sequence<_Is...>) { return __const_assignable(std::declval<_UTuple>()))...>(); }(index_sequence_for<_Elements...>{}); } public: tuple& operator=(const tuple& __u) = delete; constexpr tuple& operator=(const tuple& __u) noexcept(__nothrow_assignable()) requires (__assignable()) { this->_M_assign(__u); return *this; } constexpr tuple& operator=(tuple&& __u) noexcept(__nothrow_assignable<_Elements...>()) requires (__assignable<_Elements...>()) { this->_M_assign(std::move(__u)); return *this; } template requires (__assignable()) constexpr tuple& operator=(const tuple<_UTypes...>& __u) noexcept(__nothrow_assignable()) { this->_M_assign(__u); return *this; } template requires (__assignable<_UTypes...>()) constexpr tuple& operator=(tuple<_UTypes...>&& __u) noexcept(__nothrow_assignable<_UTypes...>()) { this->_M_assign(std::move(__u)); return *this; } constexpr const tuple& operator=(const tuple& __u) const requires (__const_assignable()) { this->_M_assign(__u); return *this; } constexpr const tuple& operator=(tuple&& __u) const requires (__const_assignable<_Elements...>()) { this->_M_assign(std::move(__u)); return *this; } template constexpr const tuple& operator=(const tuple<_UTypes...>& __u) const requires (__const_assignable()) { this->_M_assign(__u); return *this; } template constexpr const tuple& operator=(tuple<_UTypes...>&& __u) const requires (__const_assignable<_UTypes...>()) { this->_M_assign(std::move(__u)); return *this; } template requires (__assignable()) constexpr tuple& operator=(const pair<_U1, _U2>& __u) noexcept(__nothrow_assignable()) { this->_M_head(*this) = __u.first; this->_M_tail(*this)._M_head(*this) = __u.second; return *this; } template requires (__assignable<_U1, _U2>()) constexpr tuple& operator=(pair<_U1, _U2>&& __u) noexcept(__nothrow_assignable<_U1, _U2>()) { this->_M_head(*this) = std::forward<_U1>(__u.first); this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__u.second); return *this; } template requires (__const_assignable()) constexpr const tuple& operator=(const pair<_U1, _U2>& __u) const { this->_M_head(*this) = __u.first; this->_M_tail(*this)._M_head(*this) = __u.second; return *this; } template requires (__const_assignable<_U1, _U2>()) constexpr const tuple& operator=(pair<_U1, _U2>&& __u) const { this->_M_head(*this) = std::forward<_U1>(__u.first); this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__u.second); return *this; } template<__eligible_tuple_like _UTuple> requires (__assignable_from_tuple_like<_UTuple>()) constexpr tuple& operator=(_UTuple&& __u) { this->_M_assign(__tuple_like_tag_t{}, std::forward<_UTuple>(__u)); return *this; } template<__eligible_tuple_like _UTuple> requires (__const_assignable_from_tuple_like<_UTuple>()) constexpr const tuple& operator=(_UTuple&& __u) const { this->_M_assign(__tuple_like_tag_t{}, std::forward<_UTuple>(__u)); return *this; } template<__tuple_like _UTuple> requires (!__is_tuple_v<_UTuple>) friend constexpr bool operator== [[nodiscard]] (const tuple& __t, const _UTuple& __u) { static_assert(sizeof...(_Elements) == tuple_size_v<_UTuple>, "tuple objects can only be compared if they have equal sizes."); return [&](index_sequence<_Is...>) { return (bool(std::get<_Is>(__t) == std::get<_Is>(__u)) && ...); }(index_sequence_for<_Elements...>{}); } template<__tuple_like _UTuple, typename = make_index_sequence>> struct __tuple_like_common_comparison_category; template<__tuple_like _UTuple, size_t... _Is> requires requires { typename void_t<__detail::__synth3way_t<_Elements, tuple_element_t<_Is, _UTuple>>...>; } struct __tuple_like_common_comparison_category<_UTuple, index_sequence<_Is...>> { using type = common_comparison_category_t <__detail::__synth3way_t<_Elements, tuple_element_t<_Is, _UTuple>>...>; }; template<__tuple_like _UTuple> requires (!__is_tuple_v<_UTuple>) friend constexpr typename __tuple_like_common_comparison_category<_UTuple>::type operator<=>(const tuple& __t, const _UTuple& __u) { using _Cat = typename __tuple_like_common_comparison_category<_UTuple>::type; return std::__tuple_cmp<_Cat>(__t, __u, index_sequence_for<_Elements...>()); } # 1948 "/usr/include/c++/15/tuple" 3 constexpr void swap(tuple& __in) noexcept(__and_<__is_nothrow_swappable<_Elements>...>::value) { _Inherited::_M_swap(__in); } # 1961 "/usr/include/c++/15/tuple" 3 constexpr void swap(const tuple& __in) const noexcept(__and_v<__is_nothrow_swappable...>) requires (is_swappable_v && ...) { _Inherited::_M_swap(__in); } }; template tuple(_UTypes...) -> tuple<_UTypes...>; template tuple(pair<_T1, _T2>) -> tuple<_T1, _T2>; template tuple(allocator_arg_t, _Alloc, _UTypes...) -> tuple<_UTypes...>; template tuple(allocator_arg_t, _Alloc, pair<_T1, _T2>) -> tuple<_T1, _T2>; template tuple(allocator_arg_t, _Alloc, tuple<_UTypes...>) -> tuple<_UTypes...>; template<> class tuple<> { public: constexpr void swap(tuple&) noexcept { } constexpr void swap(const tuple&) const noexcept { } tuple() = default; template constexpr tuple(allocator_arg_t, const _Alloc&) noexcept { } template constexpr tuple(allocator_arg_t, const _Alloc&, const tuple&) noexcept { } }; # 2403 "/usr/include/c++/15/tuple" 3 template struct tuple_size> : public integral_constant { }; template inline constexpr size_t tuple_size_v> = sizeof...(_Types); template inline constexpr size_t tuple_size_v> = sizeof...(_Types); template struct tuple_element<__i, tuple<_Types...>> { static_assert(__i < sizeof...(_Types), "tuple index must be in range"); using type = typename _Nth_type<__i, _Types...>::type; }; template constexpr _Head& __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } template constexpr const _Head& __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } template __enable_if_t<(__i >= sizeof...(_Types))> __get_helper(const tuple<_Types...>&) = delete; template constexpr __tuple_element_t<__i, tuple<_Elements...>>& get(tuple<_Elements...>& __t) noexcept { return std::__get_helper<__i>(__t); } template constexpr const __tuple_element_t<__i, tuple<_Elements...>>& get(const tuple<_Elements...>& __t) noexcept { return std::__get_helper<__i>(__t); } template constexpr __tuple_element_t<__i, tuple<_Elements...>>&& get(tuple<_Elements...>&& __t) noexcept { typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; return std::forward<__element_type>(std::__get_helper<__i>(__t)); } template constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& get(const tuple<_Elements...>&& __t) noexcept { typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; return std::forward(std::__get_helper<__i>(__t)); } template constexpr __enable_if_t<(__i >= sizeof...(_Elements))> get(const tuple<_Elements...>&) = delete; template constexpr _Tp& get(tuple<_Types...>& __t) noexcept { constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); static_assert(__idx < sizeof...(_Types), "the type T in std::get must occur exactly once in the tuple"); return std::__get_helper<__idx>(__t); } template constexpr _Tp&& get(tuple<_Types...>&& __t) noexcept { constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); static_assert(__idx < sizeof...(_Types), "the type T in std::get must occur exactly once in the tuple"); return std::forward<_Tp>(std::__get_helper<__idx>(__t)); } template constexpr const _Tp& get(const tuple<_Types...>& __t) noexcept { constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); static_assert(__idx < sizeof...(_Types), "the type T in std::get must occur exactly once in the tuple"); return std::__get_helper<__idx>(__t); } template constexpr const _Tp&& get(const tuple<_Types...>&& __t) noexcept { constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); static_assert(__idx < sizeof...(_Types), "the type T in std::get must occur exactly once in the tuple"); return std::forward(std::__get_helper<__idx>(__t)); } template requires (sizeof...(_Tps) == sizeof...(_Ups)) && (requires (const _Tps& __t, const _Ups& __u) { { __t == __u } -> __detail::__boolean_testable; } && ...) constexpr bool operator== [[nodiscard]] (const tuple<_Tps...>& __t, const tuple<_Ups...>& __u) { return [&](index_sequence<_Inds...>) { return (bool(std::get<_Inds>(__t) == std::get<_Inds>(__u)) && ...); }(index_sequence_for<_Tps...>{}); } template [[nodiscard]] constexpr _Cat __tuple_cmp(const _Tp& __t, const _Up& __u, _IndexSeq __indices) { _Cat __c = _Cat::equivalent; auto __cmp = [&](integral_constant) { __c = __detail::__synth3way(std::get<_Ind>(__t), std::get<_Ind>(__u)); return __c == 0; }; [&](index_sequence<_Inds...>) { (void)(__cmp(integral_constant{}) && ...); }(__indices); return __c; } template requires (sizeof...(_Tps) == sizeof...(_Ups)) && (requires { typename __detail::__synth3way_t<_Tps, _Ups>; } && ...) constexpr common_comparison_category_t<__detail::__synth3way_t<_Tps, _Ups>...> operator<=> [[nodiscard]] (const tuple<_Tps...>& __t, const tuple<_Ups...>& __u) { using _Cat = common_comparison_category_t<__detail::__synth3way_t<_Tps, _Ups>...>; return std::__tuple_cmp<_Cat>(__t, __u, index_sequence_for<_Tps...>()); } # 2666 "/usr/include/c++/15/tuple" 3 template constexpr tuple::__type...> make_tuple(_Elements&&... __args) { typedef tuple::__type...> __result_type; return __result_type(std::forward<_Elements>(__args)...); } template constexpr tuple<_Elements&&...> forward_as_tuple(_Elements&&... __args) noexcept { return tuple<_Elements&&...>(std::forward<_Elements>(__args)...); } template struct __make_tuple_impl; template struct __make_tuple_impl<_Idx, tuple<_Tp...>, _Tuple, _Nm> : __make_tuple_impl<_Idx + 1, tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>, _Tuple, _Nm> { }; template struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm> { typedef tuple<_Tp...> __type; }; template struct __do_make_tuple : __make_tuple_impl<0, tuple<>, _Tuple, tuple_size<_Tuple>::value> { }; template struct __make_tuple : public __do_make_tuple<__remove_cvref_t<_Tuple>> { }; template struct __combine_tuples; template<> struct __combine_tuples<> { typedef tuple<> __type; }; template struct __combine_tuples> { typedef tuple<_Ts...> __type; }; template struct __combine_tuples, tuple<_T2s...>, _Rem...> { typedef typename __combine_tuples, _Rem...>::__type __type; }; template struct __tuple_cat_result { typedef typename __combine_tuples ::__type...>::__type __type; }; template struct __make_1st_indices; template<> struct __make_1st_indices<> { typedef _Index_tuple<> __type; }; template struct __make_1st_indices<_Tp, _Tpls...> { typedef typename _Build_index_tuple::type>::value>::__type __type; }; template struct __tuple_concater; template struct __tuple_concater<_Ret, _Index_tuple<_Is...>, _Tp, _Tpls...> { template static constexpr _Ret _S_do(_Tp&& __tp, _Tpls&&... __tps, _Us&&... __us) { typedef typename __make_1st_indices<_Tpls...>::__type __idx; typedef __tuple_concater<_Ret, __idx, _Tpls...> __next; return __next::_S_do(std::forward<_Tpls>(__tps)..., std::forward<_Us>(__us)..., std::get<_Is>(std::forward<_Tp>(__tp))...); } }; template struct __tuple_concater<_Ret, _Index_tuple<>> { template static constexpr _Ret _S_do(_Us&&... __us) { return _Ret(std::forward<_Us>(__us)...); } }; template struct __is_tuple_like_impl> : true_type { }; template<__tuple_like... _Tpls> constexpr auto tuple_cat(_Tpls&&... __tpls) -> typename __tuple_cat_result<_Tpls...>::__type { typedef typename __tuple_cat_result<_Tpls...>::__type __ret; typedef typename __make_1st_indices<_Tpls...>::__type __idx; typedef __tuple_concater<__ret, __idx, _Tpls...> __concater; return __concater::_S_do(std::forward<_Tpls>(__tpls)...); } template constexpr tuple<_Elements&...> tie(_Elements&... __args) noexcept { return tuple<_Elements&...>(__args...); } template constexpr inline typename enable_if<__and_<__is_swappable<_Elements>...>::value >::type swap(tuple<_Elements...>& __x, tuple<_Elements...>& __y) noexcept(noexcept(__x.swap(__y))) { __x.swap(__y); } template requires (is_swappable_v && ...) constexpr void swap(const tuple<_Elements...>& __x, const tuple<_Elements...>& __y) noexcept(noexcept(__x.swap(__y))) { __x.swap(__y); } template constexpr typename enable_if...>::value>::type swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete; template struct uses_allocator, _Alloc> : true_type { }; # 2867 "/usr/include/c++/15/tuple" 3 template template constexpr inline pair<_T1, _T2>:: pair(piecewise_construct_t, tuple<_Args1...> __first, tuple<_Args2...> __second) : pair(__first, __second, typename _Build_index_tuple::__type(), typename _Build_index_tuple::__type()) { } template template constexpr inline pair<_T1, _T2>:: pair(tuple<_Args1...>& __tuple1, tuple<_Args2...>& __tuple2, _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>) : first(std::forward<_Args1>(std::get<_Indexes1>(__tuple1))...), second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...) { } template class _Trait, typename _Tp, typename _Tuple> inline constexpr bool __unpack_std_tuple = false; template class _Trait, typename _Tp, typename... _Up> inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>> = _Trait<_Tp, _Up...>::value; template class _Trait, typename _Tp, typename... _Up> inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>&> = _Trait<_Tp, _Up&...>::value; template class _Trait, typename _Tp, typename... _Up> inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>> = _Trait<_Tp, const _Up...>::value; template class _Trait, typename _Tp, typename... _Up> inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>&> = _Trait<_Tp, const _Up&...>::value; template constexpr decltype(auto) __apply_impl(_Fn&& __f, _Tuple&& __t, index_sequence<_Idx...>) { return std::__invoke(std::forward<_Fn>(__f), std::get<_Idx>(std::forward<_Tuple>(__t))...); } template constexpr decltype(auto) apply(_Fn&& __f, _Tuple&& __t) noexcept(__unpack_std_tuple) { using _Indices = make_index_sequence>>; return std::__apply_impl(std::forward<_Fn>(__f), std::forward<_Tuple>(__t), _Indices{}); } template constexpr _Tp __make_from_tuple_impl(_Tuple&& __t, index_sequence<_Idx...>) { return _Tp(std::get<_Idx>(std::forward<_Tuple>(__t))...); } template constexpr _Tp make_from_tuple(_Tuple&& __t) noexcept(__unpack_std_tuple) { constexpr size_t __n = tuple_size_v>; if constexpr (__n == 1) { using _Elt = decltype(std::get<0>(std::declval<_Tuple>())); static_assert(!__reference_constructs_from_temporary(_Tp, _Elt)); } return __make_from_tuple_impl<_Tp>(std::forward<_Tuple>(__t), make_index_sequence<__n>{}); } template<__tuple_like _TTuple, __tuple_like _UTuple, template class _TQual, template class _UQual, typename = make_index_sequence>> struct __tuple_like_common_reference; template<__tuple_like _TTuple, __tuple_like _UTuple, template class _TQual, template class _UQual, size_t... _Is> requires requires { typename tuple>, _UQual>>...>; } struct __tuple_like_common_reference<_TTuple, _UTuple, _TQual, _UQual, index_sequence<_Is...>> { using type = tuple>, _UQual>>...>; }; template<__tuple_like _TTuple, __tuple_like _UTuple, template class _TQual, template class _UQual> requires (__is_tuple_v<_TTuple> || __is_tuple_v<_UTuple>) && is_same_v<_TTuple, decay_t<_TTuple>> && is_same_v<_UTuple, decay_t<_UTuple>> && (tuple_size_v<_TTuple> == tuple_size_v<_UTuple>) && requires { typename __tuple_like_common_reference<_TTuple, _UTuple, _TQual, _UQual>::type; } struct basic_common_reference<_TTuple, _UTuple, _TQual, _UQual> { using type = typename __tuple_like_common_reference<_TTuple, _UTuple, _TQual, _UQual>::type; }; template<__tuple_like _TTuple, __tuple_like _UTuple, typename = make_index_sequence>> struct __tuple_like_common_type; template<__tuple_like _TTuple, __tuple_like _UTuple, size_t... _Is> requires requires { typename tuple, tuple_element_t<_Is, _UTuple>>...>; } struct __tuple_like_common_type<_TTuple, _UTuple, index_sequence<_Is...>> { using type = tuple, tuple_element_t<_Is, _UTuple>>...>; }; template<__tuple_like _TTuple, __tuple_like _UTuple> requires (__is_tuple_v<_TTuple> || __is_tuple_v<_UTuple>) && is_same_v<_TTuple, decay_t<_TTuple>> && is_same_v<_UTuple, decay_t<_UTuple>> && (tuple_size_v<_TTuple> == tuple_size_v<_UTuple>) && requires { typename __tuple_like_common_type<_TTuple, _UTuple>::type; } struct common_type<_TTuple, _UTuple> { using type = typename __tuple_like_common_type<_TTuple, _UTuple>::type; }; } # 10 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/Includes/atom/Base.hh" 2 # 1 "/usr/include/x86_64-linux-gnu/sys/types.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/sys/types.h" 3 4 extern "C" { typedef __u_char u_char; typedef __u_short u_short; typedef __u_int u_int; typedef __u_long u_long; typedef __quad_t quad_t; typedef __u_quad_t u_quad_t; typedef __fsid_t fsid_t; typedef __loff_t loff_t; typedef __ino_t ino_t; typedef __ino64_t ino64_t; typedef __dev_t dev_t; typedef __gid_t gid_t; typedef __mode_t mode_t; typedef __nlink_t nlink_t; typedef __uid_t uid_t; typedef __off_t off_t; typedef __off64_t off64_t; typedef __pid_t pid_t; typedef __id_t id_t; typedef __ssize_t ssize_t; typedef __daddr_t daddr_t; typedef __caddr_t caddr_t; typedef __key_t key_t; # 1 "/usr/include/x86_64-linux-gnu/bits/types/clock_t.h" 1 3 4 typedef __clock_t clock_t; # 127 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h" 1 3 4 typedef __clockid_t clockid_t; # 129 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/time_t.h" 1 3 4 # 10 "/usr/include/x86_64-linux-gnu/bits/types/time_t.h" 3 4 typedef __time_t time_t; # 130 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/timer_t.h" 1 3 4 typedef __timer_t timer_t; # 131 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 typedef __useconds_t useconds_t; typedef __suseconds_t suseconds_t; # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h" 1 3 4 # 145 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 typedef unsigned long int ulong; typedef unsigned short int ushort; typedef unsigned int uint; typedef __uint8_t u_int8_t; typedef __uint16_t u_int16_t; typedef __uint32_t u_int32_t; typedef __uint64_t u_int64_t; typedef int register_t __attribute__ ((__mode__ (__word__))); # 176 "/usr/include/x86_64-linux-gnu/sys/types.h" 3 4 # 1 "/usr/include/endian.h" 1 3 4 # 24 "/usr/include/endian.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/endian.h" 1 3 4 # 35 "/usr/include/x86_64-linux-gnu/bits/endian.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/endianness.h" 1 3 4 # 36 "/usr/include/x86_64-linux-gnu/bits/endian.h" 2 3 4 # 25 "/usr/include/endian.h" 2 3 4 # 35 "/usr/include/endian.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/byteswap.h" 1 3 4 # 33 "/usr/include/x86_64-linux-gnu/bits/byteswap.h" 3 4 static __inline __uint16_t __bswap_16 (__uint16_t __bsx) { return __builtin_bswap16 (__bsx); } static __inline __uint32_t __bswap_32 (__uint32_t __bsx) { return __builtin_bswap32 (__bsx); } # 69 "/usr/include/x86_64-linux-gnu/bits/byteswap.h" 3 4 __extension__ static __inline __uint64_t __bswap_64 (__uint64_t __bsx) { return __builtin_bswap64 (__bsx); } # 36 "/usr/include/endian.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/uintn-identity.h" 1 3 4 # 32 "/usr/include/x86_64-linux-gnu/bits/uintn-identity.h" 3 4 static __inline __uint16_t __uint16_identity (__uint16_t __x) { return __x; } static __inline __uint32_t __uint32_identity (__uint32_t __x) { return __x; } static __inline __uint64_t __uint64_identity (__uint64_t __x) { return __x; } # 37 "/usr/include/endian.h" 2 3 4 # 177 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/select.h" 1 3 4 # 30 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/select.h" 1 3 4 # 31 "/usr/include/x86_64-linux-gnu/sys/select.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h" 1 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h" 1 3 4 typedef struct { unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; } __sigset_t; # 5 "/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h" 2 3 4 typedef __sigset_t sigset_t; # 34 "/usr/include/x86_64-linux-gnu/sys/select.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h" 1 3 4 struct timeval { __time_t tv_sec; __suseconds_t tv_usec; }; # 38 "/usr/include/x86_64-linux-gnu/sys/select.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h" 1 3 4 # 11 "/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h" 3 4 struct timespec { __time_t tv_sec; __syscall_slong_t tv_nsec; # 31 "/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h" 3 4 }; # 40 "/usr/include/x86_64-linux-gnu/sys/select.h" 2 3 4 # 49 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 typedef long int __fd_mask; # 59 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 typedef struct { __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; } fd_set; typedef __fd_mask fd_mask; # 91 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 extern "C" { # 102 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout); # 127 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 extern int pselect (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, const struct timespec *__restrict __timeout, const __sigset_t *__restrict __sigmask); # 150 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/select2.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/select2.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/select-decl.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/select-decl.h" 3 4 extern long int __fdelt_chk (long int __d); extern long int __fdelt_warn (long int __d) __attribute__((__warning__ ("bit outside of fd_set selected"))); # 24 "/usr/include/x86_64-linux-gnu/bits/select2.h" 2 3 4 # 151 "/usr/include/x86_64-linux-gnu/sys/select.h" 2 3 4 } # 180 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 typedef __blksize_t blksize_t; typedef __blkcnt_t blkcnt_t; typedef __fsblkcnt_t fsblkcnt_t; typedef __fsfilcnt_t fsfilcnt_t; # 219 "/usr/include/x86_64-linux-gnu/sys/types.h" 3 4 typedef __blkcnt64_t blkcnt64_t; typedef __fsblkcnt64_t fsblkcnt64_t; typedef __fsfilcnt64_t fsfilcnt64_t; # 1 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 1 3 4 # 44 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h" 1 3 4 # 21 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 22 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h" 2 3 4 # 45 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h" 3 4 typedef union { __extension__ unsigned long long int __value64; struct { unsigned int __low; unsigned int __high; } __value32; } __atomic_wide_counter; # 47 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 2 3 4 typedef struct __pthread_internal_list { struct __pthread_internal_list *__prev; struct __pthread_internal_list *__next; } __pthread_list_t; typedef struct __pthread_internal_slist { struct __pthread_internal_slist *__next; } __pthread_slist_t; # 76 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/struct_mutex.h" 1 3 4 # 22 "/usr/include/x86_64-linux-gnu/bits/struct_mutex.h" 3 4 struct __pthread_mutex_s { int __lock; unsigned int __count; int __owner; unsigned int __nusers; int __kind; short __spins; short __unused; __pthread_list_t __list; # 52 "/usr/include/x86_64-linux-gnu/bits/struct_mutex.h" 3 4 }; # 77 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 2 3 4 # 89 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h" 3 4 struct __pthread_rwlock_arch_t { unsigned int __readers; unsigned int __writers; unsigned int __wrphase_futex; unsigned int __writers_futex; unsigned int __pad3; unsigned int __pad4; int __cur_writer; int __shared; unsigned long int __pad1; unsigned long int __pad2; unsigned int __flags; # 48 "/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h" 3 4 }; # 90 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 2 3 4 struct __pthread_cond_s { __atomic_wide_counter __wseq; __atomic_wide_counter __g1_start; unsigned int __g_size[2] ; unsigned int __g1_orig_size; unsigned int __wrefs; unsigned int __g_signals[2]; unsigned int __unused_initialized_1; unsigned int __unused_initialized_2; }; typedef unsigned int __tss_t; typedef unsigned long int __thrd_t; typedef struct { int __data ; } __once_flag; # 24 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 2 3 4 typedef unsigned long int pthread_t; typedef union { char __size[4]; int __align; } pthread_mutexattr_t; typedef union { char __size[4]; int __align; } pthread_condattr_t; typedef unsigned int pthread_key_t; typedef int pthread_once_t; union pthread_attr_t { char __size[56]; long int __align; }; typedef union pthread_attr_t pthread_attr_t; typedef union { struct __pthread_mutex_s __data; char __size[40]; long int __align; } pthread_mutex_t; typedef union { struct __pthread_cond_s __data; char __size[48]; __extension__ long long int __align; } pthread_cond_t; typedef union { struct __pthread_rwlock_arch_t __data; char __size[56]; long int __align; } pthread_rwlock_t; typedef union { char __size[8]; long int __align; } pthread_rwlockattr_t; typedef volatile int pthread_spinlock_t; typedef union { char __size[32]; long int __align; } pthread_barrier_t; typedef union { char __size[4]; int __align; } pthread_barrierattr_t; # 228 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 } # 15 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/Includes/atom/Base.hh" 2 #pragma clang diagnostic ignored "-Wnullability-extension" # 57 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/Includes/atom/Base.hh" # 57 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/Includes/atom/Base.hh" using u8 = std::uint8_t; using u16 = std::uint16_t; using u32 = std::uint32_t; using u64 = std::uint64_t; using i8 = std::int8_t; using i16 = std::int16_t; using i32 = std::int32_t; using i64 = std::int64_t; using uint = unsigned int; using usize = std::size_t; using ssize = ssize_t; using f32 = float; using f64 = double; namespace atom { static constexpr u32 WAIT_FOREVER = std::numeric_limits::max(); template using BaseType = std::tuple_element<0, std::tuple>::type; } static_assert(sizeof(u8) == 1, "Bad! Very Not Good!"); static_assert(sizeof(u16) == 2, "Bad! Very Not Good!"); static_assert(sizeof(u32) == 4, "Bad! Very Not Good!"); static_assert(sizeof(u64) == 8, "Bad! Very Not Good!"); static_assert(sizeof(i8) == 1, "Bad! Very Not Good!"); static_assert(sizeof(i16) == 2, "Bad! Very Not Good!"); static_assert(sizeof(i32) == 4, "Bad! Very Not Good!"); static_assert(sizeof(i64) == 8, "Bad! Very Not Good!"); static_assert(sizeof(uint) == 4, "Bad! Very Not Good!"); static_assert(sizeof(usize) == 8, "Bad! Very Not Good!"); static_assert(sizeof(ssize) == 8, "Bad! Very Not Good!"); static_assert(sizeof(f32) == 4, "Bad! Very Not Good!"); static_assert(sizeof(f64) == 8, "Bad! Very Not Good!"); # 7 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/Includes/atom/Panic.hh" 2 # 1 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" 1 # 41 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" # 1 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" 1 # 16 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/limits.h" 1 3 4 # 34 "/usr/lib/gcc/x86_64-linux-gnu/15/include/limits.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/syslimits.h" 1 3 4 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/limits.h" 1 3 4 # 210 "/usr/lib/gcc/x86_64-linux-gnu/15/include/limits.h" 3 4 # 1 "/usr/include/limits.h" 1 3 4 # 26 "/usr/include/limits.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4 # 27 "/usr/include/limits.h" 2 3 4 # 198 "/usr/include/limits.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/posix1_lim.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/posix1_lim.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 28 "/usr/include/x86_64-linux-gnu/bits/posix1_lim.h" 2 3 4 # 161 "/usr/include/x86_64-linux-gnu/bits/posix1_lim.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/local_lim.h" 1 3 4 # 38 "/usr/include/x86_64-linux-gnu/bits/local_lim.h" 3 4 # 1 "/usr/include/linux/limits.h" 1 3 4 # 39 "/usr/include/x86_64-linux-gnu/bits/local_lim.h" 2 3 4 # 81 "/usr/include/x86_64-linux-gnu/bits/local_lim.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h" 3 4 extern "C" { extern long int __sysconf (int __name) noexcept (true); } # 82 "/usr/include/x86_64-linux-gnu/bits/local_lim.h" 2 3 4 # 162 "/usr/include/x86_64-linux-gnu/bits/posix1_lim.h" 2 3 4 # 199 "/usr/include/limits.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/posix2_lim.h" 1 3 4 # 203 "/usr/include/limits.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/xopen_lim.h" 1 3 4 # 64 "/usr/include/x86_64-linux-gnu/bits/xopen_lim.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/uio_lim.h" 1 3 4 # 65 "/usr/include/x86_64-linux-gnu/bits/xopen_lim.h" 2 3 4 # 207 "/usr/include/limits.h" 2 3 4 # 211 "/usr/lib/gcc/x86_64-linux-gnu/15/include/limits.h" 2 3 4 # 10 "/usr/lib/gcc/x86_64-linux-gnu/15/include/syslimits.h" 2 3 4 # 10 "/usr/lib/gcc/x86_64-linux-gnu/15/include/syslimits.h" 3 4 #pragma GCC diagnostic pop # 35 "/usr/lib/gcc/x86_64-linux-gnu/15/include/limits.h" 2 3 4 # 17 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" 2 # 1 "/usr/include/stdio.h" 1 3 4 # 28 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4 # 29 "/usr/include/stdio.h" 2 3 4 extern "C" { # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h" 1 3 4 # 39 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stdarg.h" 1 3 4 # 40 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stdarg.h" 3 4 typedef __builtin_va_list __gnuc_va_list; # 42 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h" 1 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h" 1 3 4 # 13 "/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h" 3 4 typedef struct { int __count; union { unsigned int __wch; char __wchb[4]; } __value; } __mbstate_t; # 6 "/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h" 2 3 4 typedef struct _G_fpos_t { __off_t __pos; __mbstate_t __state; } __fpos_t; # 45 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h" 1 3 4 # 10 "/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h" 3 4 typedef struct _G_fpos64_t { __off64_t __pos; __mbstate_t __state; } __fpos64_t; # 46 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/__FILE.h" 1 3 4 struct _IO_FILE; typedef struct _IO_FILE __FILE; # 47 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/FILE.h" 1 3 4 struct _IO_FILE; typedef struct _IO_FILE FILE; # 48 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h" 1 3 4 # 35 "/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 36 "/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h" 2 3 4 struct _IO_FILE; struct _IO_marker; struct _IO_codecvt; struct _IO_wide_data; typedef void _IO_lock_t; struct _IO_FILE { int _flags; char *_IO_read_ptr; char *_IO_read_end; char *_IO_read_base; char *_IO_write_base; char *_IO_write_ptr; char *_IO_write_end; char *_IO_buf_base; char *_IO_buf_end; char *_IO_save_base; char *_IO_backup_base; char *_IO_save_end; struct _IO_marker *_markers; struct _IO_FILE *_chain; int _fileno; int _flags2:24; char _short_backupbuf[1]; __off_t _old_offset; unsigned short _cur_column; signed char _vtable_offset; char _shortbuf[1]; _IO_lock_t *_lock; __off64_t _offset; struct _IO_codecvt *_codecvt; struct _IO_wide_data *_wide_data; struct _IO_FILE *_freeres_list; void *_freeres_buf; struct _IO_FILE **_prevchain; int _mode; int _unused3; __uint64_t _total_written; char _unused2[12 * sizeof (int) - 5 * sizeof (void *)]; }; # 49 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h" 3 4 typedef __ssize_t cookie_read_function_t (void *__cookie, char *__buf, size_t __nbytes); typedef __ssize_t cookie_write_function_t (void *__cookie, const char *__buf, size_t __nbytes); typedef int cookie_seek_function_t (void *__cookie, __off64_t *__pos, int __w); typedef int cookie_close_function_t (void *__cookie); typedef struct _IO_cookie_io_functions_t { cookie_read_function_t *read; cookie_write_function_t *write; cookie_seek_function_t *seek; cookie_close_function_t *close; } cookie_io_functions_t; # 52 "/usr/include/stdio.h" 2 3 4 typedef __gnuc_va_list va_list; # 89 "/usr/include/stdio.h" 3 4 typedef __fpos_t fpos_t; typedef __fpos64_t fpos64_t; # 133 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/stdio_lim.h" 1 3 4 # 134 "/usr/include/stdio.h" 2 3 4 # 153 "/usr/include/stdio.h" 3 4 extern FILE *stdin; extern FILE *stdout; extern FILE *stderr; extern int remove (const char *__filename) noexcept (true); extern int rename (const char *__old, const char *__new) noexcept (true); extern int renameat (int __oldfd, const char *__old, int __newfd, const char *__new) noexcept (true); # 183 "/usr/include/stdio.h" 3 4 extern int renameat2 (int __oldfd, const char *__old, int __newfd, const char *__new, unsigned int __flags) noexcept (true); extern int fclose (FILE *__stream) __attribute__ ((__nonnull__ (1))); # 201 "/usr/include/stdio.h" 3 4 extern FILE *tmpfile (void) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); # 213 "/usr/include/stdio.h" 3 4 extern FILE *tmpfile64 (void) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); extern char *tmpnam (char[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); extern char *tmpnam_r (char __s[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); # 235 "/usr/include/stdio.h" 3 4 extern char *tempnam (const char *__dir, const char *__pfx) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); extern int fflush (FILE *__stream); # 252 "/usr/include/stdio.h" 3 4 extern int fflush_unlocked (FILE *__stream); # 262 "/usr/include/stdio.h" 3 4 extern int fcloseall (void); # 271 "/usr/include/stdio.h" 3 4 extern FILE *fopen (const char *__restrict __filename, const char *__restrict __modes) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); extern FILE *freopen (const char *__restrict __filename, const char *__restrict __modes, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); # 296 "/usr/include/stdio.h" 3 4 extern FILE *fopen64 (const char *__restrict __filename, const char *__restrict __modes) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); extern FILE *freopen64 (const char *__restrict __filename, const char *__restrict __modes, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); extern FILE *fdopen (int __fd, const char *__modes) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); extern FILE *fopencookie (void *__restrict __magic_cookie, const char *__restrict __modes, cookie_io_functions_t __io_funcs) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); # 341 "/usr/include/stdio.h" 3 4 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, int __modes, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, size_t __size) noexcept (true) __attribute__ ((__nonnull__ (1))); extern void setlinebuf (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int fprintf (FILE *__restrict __stream, const char *__restrict __format, ...) __attribute__ ((__nonnull__ (1))); extern int printf (const char *__restrict __format, ...); extern int sprintf (char *__restrict __s, const char *__restrict __format, ...) noexcept (true); extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __attribute__ ((__nonnull__ (1))); extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); extern int vsprintf (char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true); extern int snprintf (char *__restrict __s, size_t __maxlen, const char *__restrict __format, ...) noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); extern int vsnprintf (char *__restrict __s, size_t __maxlen, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, __gnuc_va_list __arg) noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))) __attribute__ ((__warn_unused_result__)); extern int __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); extern int asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); extern int vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __arg) __attribute__ ((__format__ (__printf__, 2, 0))); extern int dprintf (int __fd, const char *__restrict __fmt, ...) __attribute__ ((__format__ (__printf__, 2, 3))); extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) noexcept (true); # 1 "/usr/include/x86_64-linux-gnu/bits/floatn.h" 1 3 4 # 131 "/usr/include/x86_64-linux-gnu/bits/floatn.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/floatn-common.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/floatn-common.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/long-double.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/bits/floatn-common.h" 2 3 4 # 132 "/usr/include/x86_64-linux-gnu/bits/floatn.h" 2 3 4 # 445 "/usr/include/stdio.h" 2 3 4 extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc23_fscanf") __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc23_scanf") __attribute__ ((__warn_unused_result__)); extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc23_sscanf") ; # 497 "/usr/include/stdio.h" 3 4 extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __attribute__ ((__format__ (__scanf__, 2, 0))); extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vfscanf") __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vscanf") __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc23_vsscanf") __attribute__ ((__format__ (__scanf__, 2, 0))); # 582 "/usr/include/stdio.h" 3 4 extern int fgetc (FILE *__stream) __attribute__ ((__nonnull__ (1))); extern int getc (FILE *__stream) __attribute__ ((__nonnull__ (1))); extern int getchar (void); extern int getc_unlocked (FILE *__stream) __attribute__ ((__nonnull__ (1))); extern int getchar_unlocked (void); # 607 "/usr/include/stdio.h" 3 4 extern int fgetc_unlocked (FILE *__stream) __attribute__ ((__nonnull__ (1))); extern int fputc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); extern int putc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); extern int putchar (int __c); # 631 "/usr/include/stdio.h" 3 4 extern int fputc_unlocked (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); extern int putc_unlocked (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); extern int putchar_unlocked (int __c); extern int getw (FILE *__stream) __attribute__ ((__nonnull__ (1))); extern int putw (int __w, FILE *__stream) __attribute__ ((__nonnull__ (2))); extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); # 681 "/usr/include/stdio.h" 3 4 extern char *fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); # 693 "/usr/include/stdio.h" 3 4 extern __ssize_t __getdelim (char **__restrict __lineptr, size_t *__restrict __n, int __delimiter, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); extern __ssize_t getdelim (char **__restrict __lineptr, size_t *__restrict __n, int __delimiter, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); extern __ssize_t getline (char **__restrict __lineptr, size_t *__restrict __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); extern int fputs (const char *__restrict __s, FILE *__restrict __stream) __attribute__ ((__nonnull__ (2))); extern int puts (const char *__s); extern int ungetc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); extern size_t fread (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); extern size_t fwrite (const void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __s) __attribute__ ((__nonnull__ (4))); # 749 "/usr/include/stdio.h" 3 4 extern int fputs_unlocked (const char *__restrict __s, FILE *__restrict __stream) __attribute__ ((__nonnull__ (2))); # 760 "/usr/include/stdio.h" 3 4 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __attribute__ ((__nonnull__ (4))); extern int fseek (FILE *__stream, long int __off, int __whence) __attribute__ ((__nonnull__ (1))); extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); extern void rewind (FILE *__stream) __attribute__ ((__nonnull__ (1))); # 797 "/usr/include/stdio.h" 3 4 extern int fseeko (FILE *__stream, __off_t __off, int __whence) __attribute__ ((__nonnull__ (1))); extern __off_t ftello (FILE *__stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); # 823 "/usr/include/stdio.h" 3 4 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __attribute__ ((__nonnull__ (1))); extern int fsetpos (FILE *__stream, const fpos_t *__pos) __attribute__ ((__nonnull__ (1))); # 845 "/usr/include/stdio.h" 3 4 extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence) __attribute__ ((__nonnull__ (1))); extern __off64_t ftello64 (FILE *__stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos) __attribute__ ((__nonnull__ (1))); extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos) __attribute__ ((__nonnull__ (1))); extern void clearerr (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int feof (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); extern int ferror (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); extern void clearerr_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int feof_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); extern int ferror_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); extern void perror (const char *__s) __attribute__ ((__cold__)); extern int fileno (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); extern int fileno_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); # 891 "/usr/include/stdio.h" 3 4 extern int pclose (FILE *__stream) __attribute__ ((__nonnull__ (1))); extern FILE *popen (const char *__command, const char *__modes) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (pclose, 1))) __attribute__ ((__warn_unused_result__)); extern char *ctermid (char *__s) noexcept (true) __attribute__ ((__access__ (__write_only__, 1))); extern char *cuserid (char *__s) __attribute__ ((__access__ (__write_only__, 1))); struct obstack; extern int obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __format, ...) noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))); extern int obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __format, __gnuc_va_list __args) noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))); extern void flockfile (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int ftrylockfile (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); extern void funlockfile (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); # 953 "/usr/include/stdio.h" 3 4 extern int __uflow (FILE *); extern int __overflow (FILE *, int); # 1 "/usr/include/x86_64-linux-gnu/bits/stdio2-decl.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/stdio2-decl.h" 3 4 extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, const char *__restrict __format, ...) noexcept (true) __attribute__ ((__access__ (__write_only__, 1, 3))); extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, const char *__restrict __format, __gnuc_va_list __ap) noexcept (true) __attribute__ ((__access__ (__write_only__, 1, 3))); extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, size_t __slen, const char *__restrict __format, ...) noexcept (true) __attribute__ ((__access__ (__write_only__, 1, 2))); extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, size_t __slen, const char *__restrict __format, __gnuc_va_list __ap) noexcept (true) __attribute__ ((__access__ (__write_only__, 1, 2))); extern int __fprintf_chk (FILE *__restrict __stream, int __flag, const char *__restrict __format, ...) __attribute__ ((__nonnull__ (1))); extern int __printf_chk (int __flag, const char *__restrict __format, ...); extern int __vfprintf_chk (FILE *__restrict __stream, int __flag, const char *__restrict __format, __gnuc_va_list __ap) __attribute__ ((__nonnull__ (1))); extern int __vprintf_chk (int __flag, const char *__restrict __format, __gnuc_va_list __ap); extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt, ...) __attribute__ ((__format__ (__printf__, 3, 4))); extern int __vdprintf_chk (int __fd, int __flag, const char *__restrict __fmt, __gnuc_va_list __arg) __attribute__ ((__format__ (__printf__, 3, 0))); extern int __asprintf_chk (char **__restrict __ptr, int __flag, const char *__restrict __fmt, ...) noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))) __attribute__ ((__warn_unused_result__)); extern int __vasprintf_chk (char **__restrict __ptr, int __flag, const char *__restrict __fmt, __gnuc_va_list __arg) noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))) __attribute__ ((__warn_unused_result__)); extern int __obstack_printf_chk (struct obstack *__restrict __obstack, int __flag, const char *__restrict __format, ...) noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack, int __flag, const char *__restrict __format, __gnuc_va_list __args) noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); # 96 "/usr/include/x86_64-linux-gnu/bits/stdio2-decl.h" 3 4 extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets") __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer"))) ; extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__nonnull__ (4))); extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread") __attribute__ ((__warn_unused_result__)); extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer"))) ; extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (5))); extern char *__fgets_unlocked_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets_unlocked") __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); extern char *__fgets_unlocked_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_unlocked_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets_unlocked called with bigger size than length " "of destination buffer"))) ; extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__nonnull__ (4))); extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked") __attribute__ ((__warn_unused_result__)); extern size_t __fread_unlocked_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_unlocked_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer"))) ; extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (5))); # 959 "/usr/include/stdio.h" 2 3 4 # 970 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/stdio.h" 1 3 4 # 46 "/usr/include/x86_64-linux-gnu/bits/stdio.h" 3 4 extern __inline __attribute__ ((__gnu_inline__)) int getchar (void) { return getc (stdin); } extern __inline __attribute__ ((__gnu_inline__)) int fgetc_unlocked (FILE *__fp) { return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); } extern __inline __attribute__ ((__gnu_inline__)) int getc_unlocked (FILE *__fp) { return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); } extern __inline __attribute__ ((__gnu_inline__)) int getchar_unlocked (void) { return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); } extern __inline __attribute__ ((__gnu_inline__)) int putchar (int __c) { return putc (__c, stdout); } extern __inline __attribute__ ((__gnu_inline__)) int fputc_unlocked (int __c, FILE *__stream) { return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); } extern __inline __attribute__ ((__gnu_inline__)) int putc_unlocked (int __c, FILE *__stream) { return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); } extern __inline __attribute__ ((__gnu_inline__)) int putchar_unlocked (int __c) { return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); } extern __inline __attribute__ ((__gnu_inline__)) __ssize_t getline (char **__lineptr, size_t *__n, FILE *__stream) { return __getdelim (__lineptr, __n, '\n', __stream); } extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) feof_unlocked (FILE *__stream) noexcept (true) { return (((__stream)->_flags & 0x0010) != 0); } extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) ferror_unlocked (FILE *__stream) noexcept (true) { return (((__stream)->_flags & 0x0020) != 0); } # 971 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/stdio2.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/stdio2.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) noexcept (true) { return __builtin___sprintf_chk (__s, 3 - 1, __builtin_dynamic_object_size (__s, 1), __fmt, __builtin_va_arg_pack ()); } # 54 "/usr/include/x86_64-linux-gnu/bits/stdio2.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) vsprintf (char * __restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) { return __builtin___vsprintf_chk (__s, 3 - 1, __builtin_dynamic_object_size (__s, 1), __fmt, __ap); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) noexcept (true) { return __builtin___snprintf_chk (__s, __n, 3 - 1, __builtin_dynamic_object_size (__s, 1), __fmt, __builtin_va_arg_pack ()); } # 92 "/usr/include/x86_64-linux-gnu/bits/stdio2.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) vsnprintf (char * __restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) { return __builtin___vsnprintf_chk (__s, __n, 3 - 1, __builtin_dynamic_object_size (__s, 1), __fmt, __ap); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) int fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) { return __fprintf_chk (__stream, 3 - 1, __fmt, __builtin_va_arg_pack ()); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int printf (const char *__restrict __fmt, ...) { return __printf_chk (3 - 1, __fmt, __builtin_va_arg_pack ()); } # 151 "/usr/include/x86_64-linux-gnu/bits/stdio2.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int vprintf (const char * __restrict __fmt, __gnuc_va_list __ap) { return __vfprintf_chk (stdout, 3 - 1, __fmt, __ap); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) int vfprintf (FILE *__restrict __stream, const char *__restrict __fmt, __gnuc_va_list __ap) { return __vfprintf_chk (__stream, 3 - 1, __fmt, __ap); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int dprintf (int __fd, const char *__restrict __fmt, ...) { return __dprintf_chk (__fd, 3 - 1, __fmt, __builtin_va_arg_pack ()); } # 194 "/usr/include/x86_64-linux-gnu/bits/stdio2.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { return __vdprintf_chk (__fd, 3 - 1, __fmt, __ap); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) { return __asprintf_chk (__ptr, 3 - 1, __fmt, __builtin_va_arg_pack ()); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) { return __asprintf_chk (__ptr, 3 - 1, __fmt, __builtin_va_arg_pack ()); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __fmt, ...) noexcept (true) { return __obstack_printf_chk (__obstack, 3 - 1, __fmt, __builtin_va_arg_pack ()); } # 271 "/usr/include/x86_64-linux-gnu/bits/stdio2.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) vasprintf (char **__restrict __ptr, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) { return __vasprintf_chk (__ptr, 3 - 1, __fmt, __ap); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) { return __obstack_vprintf_chk (__obstack, 3 - 1, __fmt, __ap); } # 303 "/usr/include/x86_64-linux-gnu/bits/stdio2.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))) char * fgets (char * __restrict __s, int __n, FILE *__restrict __stream) { size_t __sz = __builtin_dynamic_object_size (__s, 1); if (((__builtin_constant_p (__sz) && (__sz) == (long unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))) && (((long unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))))) return __fgets_alias (__s, __n, __stream); if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= (__sz) / (sizeof (char)))) && !(((long unsigned int) (__n)) <= (__sz) / (sizeof (char))))) return __fgets_chk_warn (__s, __sz, __n, __stream); return __fgets_chk (__s, __sz, __n, __stream); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))) size_t fread (void * __restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) { size_t __sz = __builtin_dynamic_object_size (__ptr, 0); if (((__builtin_constant_p (__sz) && (__sz) == (long unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= ((__sz)) / ((__size)))) && (((long unsigned int) (__n)) <= ((__sz)) / ((__size)))))) return __fread_alias (__ptr, __size, __n, __stream); if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= (__sz) / (__size))) && !(((long unsigned int) (__n)) <= (__sz) / (__size)))) return __fread_chk_warn (__ptr, __sz, __size, __n, __stream); return __fread_chk (__ptr, __sz, __size, __n, __stream); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))) char * fgets_unlocked (char * __restrict __s, int __n, FILE *__restrict __stream) { size_t __sz = __builtin_dynamic_object_size (__s, 1); if (((__builtin_constant_p (__sz) && (__sz) == (long unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))) && (((long unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))))) return __fgets_unlocked_alias (__s, __n, __stream); if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= (__sz) / (sizeof (char)))) && !(((long unsigned int) (__n)) <= (__sz) / (sizeof (char))))) return __fgets_unlocked_chk_warn (__s, __sz, __n, __stream); return __fgets_unlocked_chk (__s, __sz, __n, __stream); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))) size_t fread_unlocked (void * __restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) { size_t __sz = __builtin_dynamic_object_size (__ptr, 0); if (((__builtin_constant_p (__sz) && (__sz) == (long unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= ((__sz)) / ((__size)))) && (((long unsigned int) (__n)) <= ((__sz)) / ((__size)))))) { if (__builtin_constant_p (__size) && __builtin_constant_p (__n) && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2)) && __size * __n <= 8) { size_t __cnt = __size * __n; char *__cptr = (char *) __ptr; if (__cnt == 0) return 0; for (; __cnt > 0; --__cnt) { int __c = getc_unlocked (__stream); if (__c == (-1)) break; *__cptr++ = __c; } return (__cptr - (char *) __ptr) / __size; } return __fread_unlocked_alias (__ptr, __size, __n, __stream); } if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= (__sz) / (__size))) && !(((long unsigned int) (__n)) <= (__sz) / (__size)))) return __fread_unlocked_chk_warn (__ptr, __sz, __size, __n, __stream); return __fread_unlocked_chk (__ptr, __sz, __size, __n, __stream); } # 975 "/usr/include/stdio.h" 2 3 4 } # 18 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" 2 # 232 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" # 232 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" #pragma GCC push_options # 308 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" namespace fmt { inline namespace v12 { template using enable_if_t = typename std::enable_if::type; template using conditional_t = typename std::conditional::type; template using bool_constant = std::integral_constant; template using remove_reference_t = typename std::remove_reference::type; template using remove_const_t = typename std::remove_const::type; template using remove_cvref_t = typename std::remove_cv>::type; template using make_unsigned_t = typename std::make_unsigned::type; template using underlying_t = typename std::underlying_type::type; template using decay_t = typename std::decay::type; using nullptr_t = decltype(nullptr); using ullong = unsigned long long; # 338 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" template using void_t = void; struct monostate { constexpr monostate() {} }; # 354 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" template constexpr auto min_of(T a, T b) -> T { return a < b ? a : b; } template constexpr auto max_of(T a, T b) -> T { return a > b ? a : b; } [[noreturn]] void assert_fail(const char* file, int line, const char* message); namespace detail { template constexpr void ignore_unused(const T&...) {} constexpr auto is_constant_evaluated(bool default_value = false) noexcept -> bool { ignore_unused(default_value); return std::is_constant_evaluated(); } # 404 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" using native_int128 = __int128_t; using native_uint128 = __uint128_t; inline auto map(native_int128 x) -> native_int128 { return x; } inline auto map(native_uint128 x) -> native_uint128 { return x; } # 420 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" template constexpr auto to_unsigned(Int value) -> make_unsigned_t { fmt::detail::ignore_unused((std::is_unsigned::value || value >= 0), ("negative value")); return static_cast>(value); } template using unsigned_char = conditional_t; template struct is_std_string_like : std::false_type {}; template struct is_std_string_like().find_first_of( typename T::value_type(), 0))>> : std::is_convertible().data()), const typename T::value_type*> {}; enum { is_utf8_enabled = "\u00A7"[1] == '\xA7' }; enum { use_utf8 = !0 || is_utf8_enabled }; static_assert(!1 || use_utf8, "Unicode support requires compiling with /utf-8"); template constexpr auto narrow(T*) -> char* { return nullptr; } constexpr inline __attribute__((always_inline)) auto narrow(const char* s) -> const char* { return s; } template constexpr auto compare(const Char* s1, const Char* s2, size_t n) -> int { if (!is_constant_evaluated() && sizeof(Char) == 1) return memcmp(s1, s2, n); for (; n != 0; ++s1, ++s2, --n) { if (*s1 < *s2) return -1; if (*s1 > *s2) return 1; } return 0; } namespace adl { using namespace std; template auto invoke_back_inserter() -> decltype(back_inserter(std::declval())); } template struct is_back_insert_iterator : std::false_type {}; template struct is_back_insert_iterator< It, bool_constant()), It>::value>> : std::true_type {}; template inline constexpr auto get_container(OutputIt it) -> typename OutputIt::container_type& { struct accessor : OutputIt { constexpr accessor(OutputIt base) : OutputIt(base) {} using OutputIt::container; }; return *accessor(it).container; } template struct is_contiguous : std::false_type {}; template struct is_contiguous().data()), decltype(std::declval().size()), decltype(std::declval()[size_t()])>> : std::true_type {}; } # 512 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" template class basic_string_view { private: const Char* data_; size_t size_; public: using value_type = Char; using iterator = const Char*; constexpr basic_string_view() noexcept : data_(nullptr), size_(0) {} constexpr basic_string_view(const Char* s, size_t count) noexcept : data_(s), size_(count) {} inline __attribute__((always_inline)) constexpr basic_string_view(const Char* s) : data_(s) { if (std::is_same::value && !detail::is_constant_evaluated()) { size_ = __builtin_strlen(detail::narrow(s)); return; } size_t len = 0; while (*s++) ++len; size_ = len; } template < typename S, fmt::enable_if_t<(detail::is_std_string_like::value&& std::is_same::value), int> = 0 > constexpr basic_string_view(const S& s) noexcept : data_(s.data()), size_(s.size()) {} constexpr auto data() const noexcept -> const Char* { return data_; } constexpr auto size() const noexcept -> size_t { return size_; } constexpr auto begin() const noexcept -> iterator { return data_; } constexpr auto end() const noexcept -> iterator { return data_ + size_; } constexpr auto operator[](size_t pos) const noexcept -> const Char& { return data_[pos]; } constexpr void remove_prefix(size_t n) noexcept { data_ += n; size_ -= n; } constexpr auto starts_with(basic_string_view sv) const noexcept -> bool { return size_ >= sv.size_ && detail::compare(data_, sv.data_, sv.size_) == 0; } constexpr auto starts_with(Char c) const noexcept -> bool { return size_ >= 1 && *data_ == c; } constexpr auto starts_with(const Char* s) const -> bool { return starts_with(basic_string_view(s)); } constexpr auto compare(basic_string_view other) const -> int { int cmp = detail::compare(data_, other.data_, min_of(size_, other.size_)); if (cmp != 0) return cmp; return size_ == other.size_ ? 0 : (size_ < other.size_ ? -1 : 1); } constexpr friend auto operator==(basic_string_view lhs, basic_string_view rhs) -> bool { return lhs.compare(rhs) == 0; } friend auto operator!=(basic_string_view lhs, basic_string_view rhs) -> bool { return lhs.compare(rhs) != 0; } friend auto operator<(basic_string_view lhs, basic_string_view rhs) -> bool { return lhs.compare(rhs) < 0; } friend auto operator<=(basic_string_view lhs, basic_string_view rhs) -> bool { return lhs.compare(rhs) <= 0; } friend auto operator>(basic_string_view lhs, basic_string_view rhs) -> bool { return lhs.compare(rhs) > 0; } friend auto operator>=(basic_string_view lhs, basic_string_view rhs) -> bool { return lhs.compare(rhs) >= 0; } }; using string_view = basic_string_view; template class basic_appender; using appender = basic_appender; class context; template class generic_context; template class parse_context; template using basic_format_parse_context = parse_context; using format_parse_context = parse_context; template using basic_format_context = conditional_t::value, context, generic_context>; using format_context = context; template using buffered_context = conditional_t::value, context, generic_context, Char>>; template struct is_contiguous : detail::is_contiguous {}; template class basic_format_arg; template class basic_format_args; using format_args = basic_format_args; template struct formatter { formatter() = delete; }; template struct locking : std::false_type {}; [[noreturn]] void report_error(const char* message); enum class presentation_type : unsigned char { none = 0, debug = 1, string = 2, dec = 3, hex, oct, bin, chr, pointer = 3, exp = 1, fixed, general, hexfloat }; enum class align { none, left, right, center, numeric }; enum class sign { none, minus, plus, space }; enum class arg_id_kind { none, index, name }; class basic_specs { private: # 692 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" enum : unsigned { type_mask = 0x00007, align_mask = 0x00038, width_mask = 0x000C0, precision_mask = 0x00300, sign_mask = 0x00C00, uppercase_mask = 0x01000, alternate_mask = 0x02000, localized_mask = 0x04000, fill_size_mask = 0x38000, align_shift = 3, width_shift = 6, precision_shift = 8, sign_shift = 10, fill_size_shift = 15, max_fill_size = 4 }; unsigned data_ = 1 << fill_size_shift; static_assert(sizeof(basic_specs::data_) * 8 # 713 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" >= 18, ""); char fill_data_[max_fill_size] = {' '}; constexpr void set_fill_size(size_t size) { data_ = (data_ & ~fill_size_mask) | (unsigned(size) << fill_size_shift); } public: constexpr auto type() const -> presentation_type { return static_cast(data_ & type_mask); } constexpr void set_type(presentation_type t) { data_ = (data_ & ~type_mask) | unsigned(t); } constexpr auto align() const -> align { return static_cast((data_ & align_mask) >> align_shift); } constexpr void set_align(fmt::align a) { data_ = (data_ & ~align_mask) | (unsigned(a) << align_shift); } constexpr auto dynamic_width() const -> arg_id_kind { return static_cast((data_ & width_mask) >> width_shift); } constexpr void set_dynamic_width(arg_id_kind w) { data_ = (data_ & ~width_mask) | (unsigned(w) << width_shift); } constexpr auto dynamic_precision() const -> arg_id_kind { return static_cast((data_ & precision_mask) >> precision_shift); } constexpr void set_dynamic_precision(arg_id_kind p) { data_ = (data_ & ~precision_mask) | (unsigned(p) << precision_shift); } constexpr auto dynamic() const -> bool { return (data_ & (width_mask | precision_mask)) != 0; } constexpr auto sign() const -> sign { return static_cast((data_ & sign_mask) >> sign_shift); } constexpr void set_sign(fmt::sign s) { data_ = (data_ & ~sign_mask) | (unsigned(s) << sign_shift); } constexpr auto upper() const -> bool { return (data_ & uppercase_mask) != 0; } constexpr void set_upper() { data_ |= uppercase_mask; } constexpr auto alt() const -> bool { return (data_ & alternate_mask) != 0; } constexpr void set_alt() { data_ |= alternate_mask; } constexpr void clear_alt() { data_ &= ~alternate_mask; } constexpr auto localized() const -> bool { return (data_ & localized_mask) != 0; } constexpr void set_localized() { data_ |= localized_mask; } constexpr auto fill_size() const -> size_t { return (data_ & fill_size_mask) >> fill_size_shift; } template ::value), int> = 0> constexpr auto fill() const -> const Char* { return fill_data_; } template ::value), int> = 0> constexpr auto fill() const -> const Char* { return nullptr; } template constexpr auto fill_unit() const -> Char { using uchar = unsigned char; return Char(uchar(fill_data_[0]) | uchar(fill_data_[1]) << 8 | uchar(fill_data_[2]) << 16); } constexpr void set_fill(char c) { fill_data_[0] = c; set_fill_size(1); } template constexpr void set_fill(basic_string_view s) { auto size = s.size(); set_fill_size(size); if (size == 1) { unsigned uchar = static_cast>(s[0]); fill_data_[0] = char(uchar); fill_data_[1] = char(uchar >> 8); fill_data_[2] = char(uchar >> 16); return; } fmt::detail::ignore_unused((size <= max_fill_size), ("invalid fill")); for (size_t i = 0; i < size; ++i) fill_data_[i & 3] = char(s[i]); } constexpr void copy_fill_from(const basic_specs& specs) { set_fill_size(specs.fill_size()); for (size_t i = 0; i < max_fill_size; ++i) fill_data_[i] = specs.fill_data_[i]; } }; struct format_specs : basic_specs { int width; int precision; constexpr format_specs() : width(0), precision(-1) {} }; template class parse_context { private: basic_string_view fmt_; int next_arg_id_; enum { use_constexpr_cast = !(15 * 100 + 2) || (15 * 100 + 2) >= 1200 }; constexpr void do_check_arg_id(int arg_id); public: using char_type = Char; using iterator = const Char*; constexpr explicit parse_context(basic_string_view fmt, int next_arg_id = 0) : fmt_(fmt), next_arg_id_(next_arg_id) {} constexpr auto begin() const noexcept -> iterator { return fmt_.begin(); } constexpr auto end() const noexcept -> iterator { return fmt_.end(); } constexpr void advance_to(iterator it) { fmt_.remove_prefix(detail::to_unsigned(it - begin())); } constexpr auto next_arg_id() -> int { if (next_arg_id_ < 0) { report_error("cannot switch from manual to automatic argument indexing"); return 0; } int id = next_arg_id_++; do_check_arg_id(id); return id; } constexpr void check_arg_id(int id) { if (next_arg_id_ > 0) { report_error("cannot switch from automatic to manual argument indexing"); return; } next_arg_id_ = -1; do_check_arg_id(id); } constexpr void check_arg_id(basic_string_view) { next_arg_id_ = -1; } constexpr void check_dynamic_spec(int arg_id); }; class locale_ref { private: const void* locale_; public: constexpr locale_ref() : locale_(nullptr) {} template = 0> locale_ref(const Locale& loc) : locale_(&loc) { detail::ignore_unused(sizeof(isalpha('x', loc))); } inline explicit operator bool() const noexcept { return locale_ != nullptr; } public: template auto get() const -> Locale; }; namespace detail { template struct is_code_unit : std::false_type {}; template <> struct is_code_unit : std::true_type {}; template <> struct is_code_unit : std::true_type {}; template <> struct is_code_unit : std::true_type {}; template <> struct is_code_unit : std::true_type {}; template <> struct is_code_unit : bool_constant {}; template ::value), int> = 0> constexpr auto to_string_view(const Char* s) -> basic_string_view { return s; } template ::value), int> = 0> constexpr auto to_string_view(const T& s) -> basic_string_view { return s; } template constexpr auto to_string_view(basic_string_view s) -> basic_string_view { return s; } template struct has_to_string_view : std::false_type {}; template struct has_to_string_view< T, void_t()))>> : std::true_type {}; template ()))> using char_t = typename V::value_type; enum class type { none_type, int_type, uint_type, long_long_type, ulong_long_type, int128_type, uint128_type, bool_type, char_type, last_integer_type = char_type, float_type, double_type, long_double_type, last_numeric_type = long_double_type, cstring_type, string_type, pointer_type, custom_type }; template struct type_constant : std::integral_constant {}; template struct type_constant : std::integral_constant {}; template struct type_constant : std::integral_constant {}; template struct type_constant : std::integral_constant {}; template struct type_constant : std::integral_constant {}; template struct type_constant : std::integral_constant {}; template struct type_constant : std::integral_constant {}; template struct type_constant : std::integral_constant {}; template struct type_constant : std::integral_constant {}; template struct type_constant : std::integral_constant {}; template struct type_constant : std::integral_constant {}; template struct type_constant : std::integral_constant {}; template struct type_constant : std::integral_constant {}; template struct type_constant, Char> : std::integral_constant {}; template struct type_constant : std::integral_constant {}; constexpr auto is_integral_type(type t) -> bool { return t > type::none_type && t <= type::last_integer_type; } constexpr auto is_arithmetic_type(type t) -> bool { return t > type::none_type && t <= type::last_numeric_type; } constexpr auto set(type rhs) -> int { return 1 << int(rhs); } constexpr auto in(type t, int set) -> bool { return ((set >> int(t)) & 1) != 0; } enum { sint_set = set(type::int_type) | set(type::long_long_type) | set(type::int128_type), uint_set = set(type::uint_type) | set(type::ulong_long_type) | set(type::uint128_type), bool_set = set(type::bool_type), char_set = set(type::char_type), float_set = set(type::float_type) | set(type::double_type) | set(type::long_double_type), string_set = set(type::string_type), cstring_set = set(type::cstring_type), pointer_set = set(type::pointer_type) }; struct view {}; template struct is_view : std::false_type {}; template struct is_view> : std::is_base_of {}; template struct named_arg; template struct is_named_arg : std::false_type {}; template struct is_static_named_arg : std::false_type {}; template struct is_named_arg> : std::true_type {}; template struct named_arg : view { const Char* name; const T& value; named_arg(const Char* n, const T& v) : name(n), value(v) {} static_assert(!is_named_arg::value, "nested named arguments"); }; template constexpr auto count() -> int { return B ? 1 : 0; } template constexpr auto count() -> int { return (B1 ? 1 : 0) + count(); } template constexpr auto count_named_args() -> int { return count::value...>(); } template constexpr auto count_static_named_args() -> int { return count::value...>(); } template struct named_arg_info { const Char* name; int id; }; template constexpr void check_for_duplicate(named_arg_info* named_args, int named_arg_index, basic_string_view arg_name) { for (int i = 0; i < named_arg_index; ++i) { if (named_args[i].name == arg_name) report_error("duplicate named arg"); } } template ::value), int> = 0> void init_named_arg(named_arg_info*, int& arg_index, int&, const T&) { ++arg_index; } template ::value), int> = 0> void init_named_arg(named_arg_info* named_args, int& arg_index, int& named_arg_index, const T& arg) { check_for_duplicate(named_args, named_arg_index, arg.name); named_args[named_arg_index++] = {arg.name, arg_index++}; } template ::value), int> = 0> constexpr void init_static_named_arg(named_arg_info*, int& arg_index, int&) { ++arg_index; } template ::value), int> = 0> constexpr void init_static_named_arg(named_arg_info* named_args, int& arg_index, int& named_arg_index) { check_for_duplicate(named_args, named_arg_index, T::name); named_args[named_arg_index++] = {T::name, arg_index++}; } enum { long_short = sizeof(long) == sizeof(int) && 1 }; using long_type = conditional_t; using ulong_type = conditional_t; template using format_as_result = remove_cvref_t()))>; template using format_as_member_result = remove_cvref_t::format_as(std::declval()))>; template struct use_format_as : std::false_type {}; template struct use_format_as_member : std::false_type {}; template struct use_format_as< T, bool_constant>::value>> : std::true_type {}; template struct use_format_as_member< T, bool_constant>::value>> : std::true_type {}; template > using use_formatter = bool_constant<(std::is_class::value || std::is_enum::value || std::is_union::value || std::is_array::value) && !has_to_string_view::value && !is_named_arg::value && !use_format_as::value && !use_format_as_member::value>; template > auto has_formatter_impl(T* p, buffered_context* ctx = nullptr) -> decltype(formatter().format(*p, *ctx), std::true_type()); template auto has_formatter_impl(...) -> std::false_type; template constexpr auto has_formatter() -> bool { return decltype(has_formatter_impl(static_cast(nullptr)))::value; } template struct type_mapper { static auto map(signed char) -> int; static auto map(unsigned char) -> unsigned; static auto map(short) -> int; static auto map(unsigned short) -> unsigned; static auto map(int) -> int; static auto map(unsigned) -> unsigned; static auto map(long) -> long_type; static auto map(unsigned long) -> ulong_type; static auto map(long long) -> long long; static auto map(ullong) -> ullong; static auto map(native_int128) -> native_int128; static auto map(native_uint128) -> native_uint128; static auto map(bool) -> bool; template ::value), int> = 0> static auto map(T) -> conditional_t< std::is_same::value || std::is_same::value, Char, void>; static auto map(float) -> float; static auto map(double) -> double; static auto map(long double) -> long double; static auto map(Char*) -> const Char*; static auto map(const Char*) -> const Char*; template , fmt::enable_if_t<(!std::is_pointer::value), int> = 0> static auto map(const T&) -> conditional_t::value, basic_string_view, void>; static auto map(void*) -> const void*; static auto map(const void*) -> const void*; static auto map(volatile void*) -> const void*; static auto map(const volatile void*) -> const void*; static auto map(nullptr_t) -> const void*; template ::value || std::is_member_pointer::value), int> = 0 > static auto map(const T&) -> void; template ::value), int> = 0> static auto map(const T& x) -> decltype(map(format_as(x))); template ::value), int> = 0> static auto map(const T& x) -> decltype(map(formatter::format_as(x))); template ::value), int> = 0> static auto map(T&) -> conditional_t(), T&, void>; template ::value), int> = 0> static auto map(const T& named_arg) -> decltype(map(named_arg.value)); }; template using mapped_t = decltype(detail::type_mapper::map(std::declval())); template using mapped_type_constant = type_constant, Char>; template ::value> using stored_type_constant = std::integral_constant< type, Context::builtin_types || TYPE == type::int_type ? TYPE : type::custom_type>; template class compile_parse_context : public parse_context { private: int num_args_; const type* types_; using base = parse_context; public: constexpr explicit compile_parse_context(basic_string_view fmt, int num_args, const type* types, int next_arg_id = 0) : base(fmt, next_arg_id), num_args_(num_args), types_(types) {} constexpr auto num_args() const -> int { return num_args_; } constexpr auto arg_type(int id) const -> type { return types_[id]; } constexpr auto next_arg_id() -> int { int id = base::next_arg_id(); if (id >= num_args_) report_error("argument not found"); return id; } constexpr void check_arg_id(int id) { base::check_arg_id(id); if (id >= num_args_) report_error("argument not found"); } using base::check_arg_id; constexpr void check_dynamic_spec(int arg_id) { if (arg_id < num_args_ && types_ && !is_integral_type(types_[arg_id])) report_error("width/precision is not integer"); } }; template union arg_ref { constexpr arg_ref(int idx = 0) : index(idx) {} constexpr arg_ref(basic_string_view n) : name(n) {} int index; basic_string_view name; }; template struct dynamic_format_specs : format_specs { arg_ref width_ref; arg_ref precision_ref; }; template ::value), int> = 0> constexpr auto to_ascii(Char c) -> char { return c <= 0xff ? char(c) : '\0'; } template constexpr auto code_point_length(const Char* begin) -> int { if constexpr (sizeof(Char) != 1) return 1; auto c = static_cast(*begin); return static_cast((0x3a55000000000000ull >> (2 * (c >> 3))) & 3) + 1; } template constexpr auto parse_nonnegative_int(const Char*& begin, const Char* end, int error_value) noexcept -> int { fmt::detail::ignore_unused((begin != end && '0' <= *begin && *begin <= '9'), ("")); unsigned value = 0, prev = 0; auto p = begin; do { prev = value; value = value * 10 + unsigned(*p - '0'); ++p; } while (p != end && '0' <= *p && *p <= '9'); auto num_digits = p - begin; begin = p; int digits10 = int(sizeof(int) * 8 # 1307 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" * 3 / 10); if (num_digits <= digits10) return int(value); unsigned max = 0x7fffffff # 1310 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" ; return num_digits == digits10 + 1 && prev * 10ull + unsigned(p[-1] - '0') <= max ? int(value) : error_value; } constexpr inline auto parse_align(char c) -> align { switch (c) { case '<': return align::left; case '>': return align::right; case '^': return align::center; } return align::none; } template constexpr auto is_name_start(Char c) -> bool { return ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || c == '_'; } template constexpr auto parse_arg_id(const Char* begin, const Char* end, Handler&& handler) -> const Char* { Char c = *begin; if (c >= '0' && c <= '9') { int index = 0; if (c != '0') index = parse_nonnegative_int(begin, end, 0x7fffffff # 1337 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" ); else ++begin; if (begin == end || (*begin != '}' && *begin != ':')) report_error("invalid format string"); else handler.on_index(index); return begin; } if (0 > 1 || !is_name_start(c)) { report_error("invalid format string"); return begin; } auto it = begin; do { ++it; } while (it != end && (is_name_start(*it) || ('0' <= *it && *it <= '9'))); handler.on_name({begin, to_unsigned(it - begin)}); return it; } template struct dynamic_spec_handler { parse_context& ctx; arg_ref& ref; arg_id_kind& kind; constexpr void on_index(int id) { ref = id; kind = arg_id_kind::index; ctx.check_arg_id(id); ctx.check_dynamic_spec(id); } constexpr void on_name(basic_string_view id) { ref = id; kind = arg_id_kind::name; ctx.check_arg_id(id); } }; template struct parse_dynamic_spec_result { const Char* end; arg_id_kind kind; }; template constexpr auto parse_dynamic_spec(const Char* begin, const Char* end, int& value, arg_ref& ref, parse_context& ctx) -> parse_dynamic_spec_result { fmt::detail::ignore_unused((begin != end), ("")); auto kind = arg_id_kind::none; if ('0' <= *begin && *begin <= '9') { int val = parse_nonnegative_int(begin, end, -1); if (val == -1) report_error("number is too big"); value = val; } else { if (*begin == '{') { ++begin; if (begin != end) { Char c = *begin; if (c == '}' || c == ':') { int id = ctx.next_arg_id(); ref = id; kind = arg_id_kind::index; ctx.check_dynamic_spec(id); } else { begin = parse_arg_id(begin, end, dynamic_spec_handler{ctx, ref, kind}); } } if (begin != end && *begin == '}') return {++begin, kind}; } report_error("invalid format string"); } return {begin, kind}; } template constexpr auto parse_width(const Char* begin, const Char* end, format_specs& specs, arg_ref& width_ref, parse_context& ctx) -> const Char* { auto result = parse_dynamic_spec(begin, end, specs.width, width_ref, ctx); specs.set_dynamic_width(result.kind); return result.end; } template constexpr auto parse_precision(const Char* begin, const Char* end, format_specs& specs, arg_ref& precision_ref, parse_context& ctx) -> const Char* { ++begin; if (begin == end) { report_error("invalid precision"); return begin; } auto result = parse_dynamic_spec(begin, end, specs.precision, precision_ref, ctx); specs.set_dynamic_precision(result.kind); return result.end; } enum class state { start, align, sign, hash, zero, width, precision, locale }; template constexpr auto parse_format_specs(const Char* begin, const Char* end, dynamic_format_specs& specs, parse_context& ctx, type arg_type) -> const Char* { auto c = '\0'; if (end - begin > 1) { auto next = to_ascii(begin[1]); c = parse_align(next) == align::none ? to_ascii(*begin) : '\0'; } else { if (begin == end) return begin; c = to_ascii(*begin); } struct { state current_state = state::start; constexpr void operator()(state s, bool valid = true) { if (current_state >= s || !valid) report_error("invalid format specifier"); current_state = s; } } enter_state; using pres = presentation_type; constexpr auto integral_set = sint_set | uint_set | bool_set | char_set; struct { const Char*& begin; format_specs& specs; type arg_type; constexpr auto operator()(pres pres_type, int set) -> const Char* { if (!in(arg_type, set)) report_error("invalid format specifier"); specs.set_type(pres_type); return begin + 1; } } parse_presentation_type{begin, specs, arg_type}; for (;;) { switch (c) { case '<': case '>': case '^': enter_state(state::align); specs.set_align(parse_align(c)); ++begin; break; case '+': case ' ': specs.set_sign(c == ' ' ? sign::space : sign::plus); [[fallthrough]]; case '-': enter_state(state::sign, in(arg_type, sint_set | float_set)); ++begin; break; case '#': enter_state(state::hash, is_arithmetic_type(arg_type)); specs.set_alt(); ++begin; break; case '0': enter_state(state::zero); if (!is_arithmetic_type(arg_type)) report_error("format specifier requires numeric argument"); if (specs.align() == align::none) { specs.set_align(align::numeric); specs.set_fill('0'); } ++begin; break; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case '{': enter_state(state::width); begin = parse_width(begin, end, specs, specs.width_ref, ctx); break; case '.': enter_state(state::precision, in(arg_type, float_set | string_set | cstring_set)); begin = parse_precision(begin, end, specs, specs.precision_ref, ctx); break; case 'L': enter_state(state::locale, is_arithmetic_type(arg_type)); specs.set_localized(); ++begin; break; case 'd': return parse_presentation_type(pres::dec, integral_set); case 'X': specs.set_upper(); [[fallthrough]]; case 'x': return parse_presentation_type(pres::hex, integral_set); case 'o': return parse_presentation_type(pres::oct, integral_set); case 'B': specs.set_upper(); [[fallthrough]]; case 'b': return parse_presentation_type(pres::bin, integral_set); case 'E': specs.set_upper(); [[fallthrough]]; case 'e': return parse_presentation_type(pres::exp, float_set); case 'F': specs.set_upper(); [[fallthrough]]; case 'f': return parse_presentation_type(pres::fixed, float_set); case 'G': specs.set_upper(); [[fallthrough]]; case 'g': return parse_presentation_type(pres::general, float_set); case 'A': specs.set_upper(); [[fallthrough]]; case 'a': return parse_presentation_type(pres::hexfloat, float_set); case 'c': if (arg_type == type::bool_type) report_error("invalid format specifier"); return parse_presentation_type(pres::chr, integral_set); case 's': return parse_presentation_type(pres::string, bool_set | string_set | cstring_set); case 'p': return parse_presentation_type(pres::pointer, pointer_set | cstring_set); case '?': return parse_presentation_type(pres::debug, char_set | string_set | cstring_set); case '}': return begin; default: { if (*begin == '}') return begin; auto fill_end = begin + code_point_length(begin); if (end - fill_end <= 0) { report_error("invalid format specifier"); return begin; } if (*begin == '{') { report_error("invalid fill character '{'"); return begin; } auto alignment = parse_align(to_ascii(*fill_end)); enter_state(state::align, alignment != align::none); specs.set_fill( basic_string_view(begin, to_unsigned(fill_end - begin))); specs.set_align(alignment); begin = fill_end + 1; } } if (begin == end) return begin; c = to_ascii(*begin); } } template constexpr inline __attribute__((always_inline)) auto parse_replacement_field(const Char* begin, const Char* end, Handler&& handler) -> const Char* { ++begin; if (begin == end) { handler.on_error("invalid format string"); return end; } int arg_id = 0; switch (*begin) { case '}': handler.on_replacement_field(handler.on_arg_id(), begin); return begin + 1; case '{': handler.on_text(begin, begin + 1); return begin + 1; case ':': arg_id = handler.on_arg_id(); break; default: { struct id_adapter { Handler& handler; int arg_id; constexpr void on_index(int id) { arg_id = handler.on_arg_id(id); } constexpr void on_name(basic_string_view id) { arg_id = handler.on_arg_id(id); } } adapter = {handler, 0}; begin = parse_arg_id(begin, end, adapter); arg_id = adapter.arg_id; Char c = begin != end ? *begin : Char(); if (c == '}') { handler.on_replacement_field(arg_id, begin); return begin + 1; } if (c != ':') { handler.on_error("missing '}' in format string"); return end; } break; } } begin = handler.on_format_specs(arg_id, begin + 1, end); if (begin == end || *begin != '}') return handler.on_error("unknown format specifier"), end; return begin + 1; } template constexpr void parse_format_string(basic_string_view fmt, Handler&& handler) { auto begin = fmt.data(), end = begin + fmt.size(); auto p = begin; while (p != end) { auto c = *p++; if (c == '{') { handler.on_text(begin, p - 1); begin = p = parse_replacement_field(p - 1, end, handler); } else if (c == '}') { if (p == end || *p != '}') return handler.on_error("unmatched '}' in format string"); handler.on_text(begin, p); begin = ++p; } } handler.on_text(begin, end); } constexpr inline auto check_char_specs(const format_specs& specs) -> bool { auto type = specs.type(); if (type != presentation_type::none && type != presentation_type::chr && type != presentation_type::debug) { return false; } if (specs.align() == align::numeric || specs.sign() != sign::none || specs.alt()) { report_error("invalid format specifier for char"); } return true; } struct compile_string {}; template __attribute__((visibility("hidden"))) constexpr auto invoke_parse(parse_context& ctx) -> const Char* { using mapped_type = remove_cvref_t>; constexpr bool formattable = std::is_constructible>::value; if (!formattable) return ctx.begin(); using formatted_type = conditional_t; return formatter().parse(ctx); } template struct arg_pack {}; template class format_string_checker { private: type types_[max_of(1, NUM_ARGS)]; named_arg_info named_args_[max_of(1, NUM_NAMED_ARGS)]; compile_parse_context context_; using parse_func = auto (*)(parse_context&) -> const Char*; parse_func parse_funcs_[max_of(1, NUM_ARGS)]; public: template constexpr explicit format_string_checker(basic_string_view fmt, arg_pack) : types_{mapped_type_constant::value...}, named_args_{}, context_(fmt, NUM_ARGS, types_), parse_funcs_{&invoke_parse...} { int arg_index = 0, named_arg_index = 0; using unused = int[]; (void)unused { 0, (init_static_named_arg(named_args_, arg_index, named_arg_index), 0)... } ; ignore_unused(arg_index, named_arg_index); } constexpr void on_text(const Char*, const Char*) {} constexpr auto on_arg_id() -> int { return context_.next_arg_id(); } constexpr auto on_arg_id(int id) -> int { context_.check_arg_id(id); return id; } constexpr auto on_arg_id(basic_string_view id) -> int { for (int i = 0; i < NUM_NAMED_ARGS; ++i) { if (named_args_[i].name == id) return named_args_[i].id; } if (!DYNAMIC_NAMES) on_error("argument not found"); return -1; } constexpr void on_replacement_field(int id, const Char* begin) { on_format_specs(id, begin, begin); } constexpr auto on_format_specs(int id, const Char* begin, const Char* end) -> const Char* { context_.advance_to(begin); if (id >= 0 && id < NUM_ARGS) return parse_funcs_[id](context_); for (int bracket_count = 0; begin != end && (bracket_count > 0 || *begin != '}'); ++begin) { if (*begin == '{') ++bracket_count; else if (*begin == '}') --bracket_count; } return begin; } [[noreturn]] constexpr void on_error(const char* message) { report_error(message); } }; template class buffer { private: T* ptr_; size_t size_; size_t capacity_; using grow_fun = void (*)(buffer& buf, size_t capacity); grow_fun grow_; protected: constexpr buffer(grow_fun grow, size_t sz) noexcept : size_(sz), capacity_(sz), grow_(grow) { if (0 != 0) ptr_ = nullptr; } constexpr buffer(grow_fun grow, T* p = nullptr, size_t sz = 0, size_t cap = 0) noexcept : ptr_(p), size_(sz), capacity_(cap), grow_(grow) {} constexpr ~buffer() = default; buffer(buffer&&) = default; constexpr void set(T* buf_data, size_t buf_capacity) noexcept { ptr_ = buf_data; capacity_ = buf_capacity; } public: using value_type = T; using const_reference = const T&; buffer(const buffer&) = delete; void operator=(const buffer&) = delete; auto begin() noexcept -> T* { return ptr_; } auto end() noexcept -> T* { return ptr_ + size_; } auto begin() const noexcept -> const T* { return ptr_; } auto end() const noexcept -> const T* { return ptr_ + size_; } constexpr auto size() const noexcept -> size_t { return size_; } constexpr auto capacity() const noexcept -> size_t { return capacity_; } constexpr auto data() noexcept -> T* { return ptr_; } constexpr auto data() const noexcept -> const T* { return ptr_; } constexpr void clear() { size_ = 0; } constexpr void try_resize(size_t count) { try_reserve(count); size_ = min_of(count, capacity_); } constexpr void try_reserve(size_t new_capacity) { if (new_capacity > capacity_) grow_(*this, new_capacity); } constexpr void push_back(const T& value) { try_reserve(size_ + 1); ptr_[size_++] = value; } template constexpr void append(const U* begin, const U* end) { static_assert(std::is_same() || std::is_same(), ""); while (begin != end) { auto size = size_; auto free_cap = capacity_ - size; auto count = to_unsigned(end - begin); if (free_cap < count) { grow_(*this, size + count); size = size_; free_cap = capacity_ - size; count = count < free_cap ? count : free_cap; } T* out = ptr_ + size; for (size_t i = 0; i < count; ++i) out[i] = static_cast(begin[i]); size_ += count; begin += count; } } template constexpr auto operator[](Idx index) -> T& { return ptr_[index]; } template constexpr auto operator[](Idx index) const -> const T& { return ptr_[index]; } }; struct buffer_traits { constexpr explicit buffer_traits(size_t) {} constexpr auto count() const -> size_t { return 0; } constexpr auto limit(size_t size) const -> size_t { return size; } }; class fixed_buffer_traits { private: size_t count_ = 0; size_t limit_; public: constexpr explicit fixed_buffer_traits(size_t limit) : limit_(limit) {} constexpr auto count() const -> size_t { return count_; } constexpr auto limit(size_t size) -> size_t { size_t n = limit_ > count_ ? limit_ - count_ : 0; count_ += size; return min_of(size, n); } }; template struct has_append : std::false_type {}; template struct has_append()) .append(std::declval(), std::declval()))>> : std::true_type {}; template struct has_insert : std::false_type {}; template struct has_insert< OutputIt, T, void_t()) .insert({}, std::declval(), std::declval()))>> : std::true_type {}; template () && has_append()), int> = 0 > constexpr auto copy(InputIt begin, InputIt end, OutputIt out) -> OutputIt { get_container(out).append(begin, end); return out; } template () && !has_append() && has_insert()), int> = 0 > constexpr auto copy(InputIt begin, InputIt end, OutputIt out) -> OutputIt { auto& c = get_container(out); c.insert(c.end(), begin, end); return out; } template () || !(has_append() || has_insert())), int> = 0 > constexpr auto copy(InputIt begin, InputIt end, OutputIt out) -> OutputIt { while (begin != end) *out++ = static_cast(*begin++); return out; } template class iterator_buffer : public Traits, public buffer { private: OutputIt out_; enum { buffer_size = 256 }; T data_[buffer_size]; static constexpr void grow(buffer& buf, size_t) { if (buf.size() == buffer_size) static_cast(buf).flush(); } void flush() { auto size = this->size(); this->clear(); const T* begin = data_; const T* end = begin + this->limit(size); out_ = copy(begin, end, out_); } public: explicit iterator_buffer(OutputIt out, size_t n = buffer_size) : Traits(n), buffer(grow, data_, 0, buffer_size), out_(out) {} iterator_buffer(iterator_buffer&& other) noexcept : Traits(other), buffer(grow, data_, 0, buffer_size), out_(other.out_) {} ~iterator_buffer() { try { flush(); } catch (...) {} } auto out() -> OutputIt { flush(); return out_; } auto count() const -> size_t { return Traits::count() + this->size(); } }; template class iterator_buffer : public fixed_buffer_traits, public buffer { private: T* out_; enum { buffer_size = 256 }; T data_[buffer_size]; static constexpr void grow(buffer& buf, size_t) { if (buf.size() == buf.capacity()) static_cast(buf).flush(); } void flush() { size_t n = this->limit(this->size()); if (this->data() == out_) { out_ += n; this->set(data_, buffer_size); } this->clear(); } public: explicit iterator_buffer(T* out, size_t n = buffer_size) : fixed_buffer_traits(n), buffer(grow, out, 0, n), out_(out) {} iterator_buffer(iterator_buffer&& other) noexcept : fixed_buffer_traits(other), buffer(static_cast(other)), out_(other.out_) { if (this->data() != out_) { this->set(data_, buffer_size); this->clear(); } } ~iterator_buffer() { flush(); } auto out() -> T* { flush(); return out_; } auto count() const -> size_t { return fixed_buffer_traits::count() + this->size(); } }; template class iterator_buffer : public buffer { public: explicit iterator_buffer(T* out, size_t = 0) : buffer([](buffer&, size_t) {}, out, 0, ~size_t()) {} auto out() -> T* { return &*this->end(); } }; template class container_buffer : public buffer { private: using value_type = typename Container::value_type; static constexpr void grow(buffer& buf, size_t capacity) { auto& self = static_cast(buf); self.container.resize(capacity); self.set(&self.container[0], capacity); } public: Container& container; explicit container_buffer(Container& c) : buffer(grow, c.size()), container(c) {} }; template class iterator_buffer< OutputIt, enable_if_t::value && is_contiguous::value, typename OutputIt::container_type::value_type>> : public container_buffer { private: using base = container_buffer; public: explicit iterator_buffer(typename OutputIt::container_type& c) : base(c) {} explicit iterator_buffer(OutputIt out, size_t = 0) : base(get_container(out)) {} auto out() -> OutputIt { return OutputIt(this->container); } }; template class counting_buffer : public buffer { private: enum { buffer_size = 256 }; T data_[buffer_size]; size_t count_ = 0; static constexpr void grow(buffer& buf, size_t) { if (buf.size() != buffer_size) return; static_cast(buf).count_ += buf.size(); buf.clear(); } public: constexpr counting_buffer() : buffer(grow, data_, 0, buffer_size) {} constexpr auto count() const noexcept -> size_t { return count_ + this->size(); } }; template struct is_back_insert_iterator> : std::true_type {}; template struct is_buffer_appender : std::false_type {}; template struct is_buffer_appender< It, bool_constant< is_back_insert_iterator::value && std::is_base_of, typename It::container_type>::value>> : std::true_type {}; template ::value), int> = 0> auto get_buffer(OutputIt out) -> iterator_buffer { return iterator_buffer(out); } template ::value), int> = 0> auto get_buffer(OutputIt out) -> buffer& { return get_container(out); } template auto get_iterator(Buf& buf, OutputIt) -> decltype(buf.out()) { return buf.out(); } template auto get_iterator(buffer&, OutputIt out) -> OutputIt { return out; } template struct type_is_unformattable_for; template struct string_value { const Char* data; size_t size; auto str() const -> basic_string_view { return {data, size}; } }; template struct custom_value { using char_type = typename Context::char_type; void* value; void (*format)(void* arg, parse_context& parse_ctx, Context& ctx); }; template struct named_arg_value { const named_arg_info* data; size_t size; }; struct custom_tag {}; # 2135 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" template class value { public: using char_type = typename Context::char_type; union { monostate no_value; int int_value; unsigned uint_value; long long long_long_value; ullong ulong_long_value; native_int128 int128_value; native_uint128 uint128_value; bool bool_value; char_type char_value; float float_value; double double_value; long double long_double_value; const void* pointer; string_value string; custom_value custom; named_arg_value named_args; }; constexpr inline __attribute__((always_inline)) value() : no_value() {} constexpr inline __attribute__((always_inline)) value(signed char x) : int_value(x) {} constexpr inline __attribute__((always_inline)) value(unsigned char x ) : uint_value(x) {} constexpr inline __attribute__((always_inline)) value(signed short x) : int_value(x) {} constexpr inline __attribute__((always_inline)) value(unsigned short x ) : uint_value(x) {} constexpr inline __attribute__((always_inline)) value(int x) : int_value(x) {} constexpr inline __attribute__((always_inline)) value(unsigned x ) : uint_value(x) {} constexpr inline __attribute__((always_inline)) value(long x ) : value(long_type(x)) {} constexpr inline __attribute__((always_inline)) value(unsigned long x ) : value(ulong_type(x)) {} constexpr inline __attribute__((always_inline)) value(long long x ) : long_long_value(x) {} constexpr inline __attribute__((always_inline)) value(ullong x ) : ulong_long_value(x) {} inline __attribute__((always_inline)) value(native_int128 x ) : int128_value(x) {} inline __attribute__((always_inline)) value(native_uint128 x ) : uint128_value(x) {} constexpr inline __attribute__((always_inline)) value(bool x ) : bool_value(x) {} template ::value), int> = 0> constexpr inline __attribute__((always_inline)) value(T x ) : char_value(x) { static_assert( std::is_same::value || std::is_same::value, "mixing character types is disallowed"); } constexpr inline __attribute__((always_inline)) value(float x ) : float_value(x) {} constexpr inline __attribute__((always_inline)) value(double x ) : double_value(x) {} inline __attribute__((always_inline)) value(long double x ) : long_double_value(x) {} constexpr inline __attribute__((always_inline)) value(char_type* x ) { string.data = x; if (is_constant_evaluated()) string.size = 0; } constexpr inline __attribute__((always_inline)) value(const char_type* x ) { string.data = x; if (is_constant_evaluated()) string.size = 0; } template , fmt::enable_if_t<(!std::is_pointer::value), int> = 0> constexpr value(const T& x ) { static_assert(std::is_same::value, "mixing character types is disallowed"); auto sv = to_string_view(x); string.data = sv.data(); string.size = sv.size(); } constexpr inline __attribute__((always_inline)) value(void* x ) : pointer(x) {} constexpr inline __attribute__((always_inline)) value(const void* x ) : pointer(x) {} constexpr inline __attribute__((always_inline)) value(volatile void* x ) : pointer(const_cast(x)) {} constexpr inline __attribute__((always_inline)) value(const volatile void* x ) : pointer(const_cast(x)) {} constexpr inline __attribute__((always_inline)) value(nullptr_t) : pointer(nullptr) {} template ::value || std::is_member_pointer::value) && !std::is_void::type>::value), int> = 0 > constexpr value(const T&) { static_assert(sizeof(T) == 0, "formatting of non-void pointers is disallowed"); } template ::value), int> = 0> constexpr value(const T& x) : value(format_as(x)) {} template ::value), int> = 0> constexpr value(const T& x) : value(formatter::format_as(x)) {} template ::value), int> = 0> constexpr value(const T& named_arg) : value(named_arg.value) {} template ::value || !1), int> = 0> constexpr inline __attribute__((always_inline)) value(T& x) : value(x, custom_tag()) {} inline __attribute__((always_inline)) value(const named_arg_info* args, size_t size) : named_args{args, size} {} private: template ()), int> = 0> constexpr value(T& x, custom_tag) { using value_type = remove_const_t; if (!is_constant_evaluated()) { custom.value = const_cast(&reinterpret_cast(x)); } else { custom.value = nullptr; if constexpr (std::is_same*>::value) custom.value = const_cast(&x); } custom.format = format_custom; } template ()), int> = 0> constexpr value(const T&, custom_tag) { type_is_unformattable_for _; } template static void format_custom(void* arg, parse_context& parse_ctx, Context& ctx) { auto f = formatter(); parse_ctx.advance_to(f.parse(parse_ctx)); using qualified_type = conditional_t(), const T, T>; const auto& cf = f; ctx.advance_to(cf.format(*static_cast(arg), ctx)); } }; enum { packed_arg_bits = 4 }; enum { max_packed_args = 62 / packed_arg_bits }; enum : ullong { is_unpacked_bit = 1ULL << 63 }; enum : ullong { has_named_args_bit = 1ULL << 62 }; template struct is_output_iterator : std::false_type {}; template <> struct is_output_iterator : std::true_type {}; template struct is_output_iterator< It, T, enable_if_t&>()++), T>::value>> : std::true_type {}; template constexpr auto encode_types() -> ullong { return 0; } template constexpr auto encode_types() -> ullong { return unsigned(stored_type_constant::value) | (encode_types() << packed_arg_bits); } template constexpr auto make_descriptor() -> ullong { return NUM_ARGS <= max_packed_args ? encode_types() : is_unpacked_bit | NUM_ARGS; } template using arg_t = conditional_t, basic_format_arg>; template struct named_arg_store { arg_t args[NUM_ARGS + 1u]; named_arg_info named_args[NUM_NAMED_ARGS + 0u]; template constexpr inline __attribute__((always_inline)) named_arg_store(T&... values) : args{{named_args, NUM_NAMED_ARGS}, values...} { int arg_index = 0, named_arg_index = 0; using unused = int[]; (void)unused { 0, (init_named_arg(named_args, arg_index, named_arg_index, values), 0)... } ; } named_arg_store(named_arg_store&& rhs) { args[0] = {named_args, NUM_NAMED_ARGS}; for (size_t i = 1; i < sizeof(args) / sizeof(*args); ++i) args[i] = rhs.args[i]; for (size_t i = 0; i < NUM_NAMED_ARGS; ++i) named_args[i] = rhs.named_args[i]; } named_arg_store(const named_arg_store& rhs) = delete; auto operator=(const named_arg_store& rhs) -> named_arg_store& = delete; auto operator=(named_arg_store&& rhs) -> named_arg_store& = delete; operator const arg_t*() const { return args + 1; } }; template struct format_arg_store { using type = conditional_t[max_of(1, NUM_ARGS)], named_arg_store>; type args; }; template struct native_formatter { private: dynamic_format_specs specs_; public: constexpr auto parse(parse_context& ctx) -> const Char* { if (ctx.begin() == ctx.end() || *ctx.begin() == '}') return ctx.begin(); auto end = parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, TYPE); if constexpr (TYPE == type::char_type) check_char_specs(specs_); return end; } template = 0 > constexpr void set_debug_format(bool set = true) { specs_.set_type(set ? presentation_type::debug : presentation_type::none); } template constexpr auto format(const T& val, FormatContext& ctx) const -> decltype(ctx.out()); }; template constexpr bool enforce_compile_checks() { return true; } template constexpr auto is_locking() -> bool { return locking>::value; } template constexpr auto is_locking() -> bool { return locking>::value || is_locking(); } void vformat_to(buffer& buf, string_view fmt, format_args args, locale_ref loc = {}); inline void vprint_mojibake(FILE*, string_view, const format_args&, bool) {} } template using named_arg = detail::named_arg; template constexpr void parse_context::do_check_arg_id(int arg_id) { if (detail::is_constant_evaluated() && use_constexpr_cast) { auto ctx = static_cast*>(this); if (arg_id >= ctx->num_args()) report_error("argument not found"); } } template constexpr void parse_context::check_dynamic_spec(int arg_id) { using detail::compile_parse_context; if (detail::is_constant_evaluated() && use_constexpr_cast) static_cast*>(this)->check_dynamic_spec(arg_id); } template class basic_appender { protected: detail::buffer* container; public: using container_type = detail::buffer; constexpr basic_appender(detail::buffer& buf) : container(&buf) {} constexpr auto operator=(T c) -> basic_appender& { container->push_back(c); return *this; } constexpr auto operator*() -> basic_appender& { return *this; } constexpr auto operator++() -> basic_appender& { return *this; } constexpr auto operator++(int) -> basic_appender { return *this; } }; template class basic_format_arg { private: detail::value value_; detail::type type_; friend class basic_format_args; using char_type = typename Context::char_type; public: class handle { private: detail::custom_value custom_; public: explicit handle(detail::custom_value custom) : custom_(custom) {} void format(parse_context& parse_ctx, Context& ctx) const { custom_.format(custom_.value, parse_ctx, ctx); } }; constexpr basic_format_arg() : type_(detail::type::none_type) {} basic_format_arg(const detail::named_arg_info* args, size_t size) : value_(args, size) {} template basic_format_arg(T&& val) : value_(val), type_(detail::stored_type_constant::value) {} constexpr explicit operator bool() const noexcept { return type_ != detail::type::none_type; } auto type() const -> detail::type { return type_; } template constexpr inline __attribute__((always_inline)) auto visit(Visitor&& vis) const -> decltype(vis(0)) { using detail::map; switch (type_) { case detail::type::none_type: break; case detail::type::int_type: return vis(value_.int_value); case detail::type::uint_type: return vis(value_.uint_value); case detail::type::long_long_type: return vis(value_.long_long_value); case detail::type::ulong_long_type: return vis(value_.ulong_long_value); case detail::type::int128_type: return vis(map(value_.int128_value)); case detail::type::uint128_type: return vis(map(value_.uint128_value)); case detail::type::bool_type: return vis(value_.bool_value); case detail::type::char_type: return vis(value_.char_value); case detail::type::float_type: return vis(value_.float_value); case detail::type::double_type: return vis(value_.double_value); case detail::type::long_double_type: return vis(value_.long_double_value); case detail::type::cstring_type: return vis(value_.string.data); case detail::type::string_type: return vis(value_.string.str()); case detail::type::pointer_type: return vis(value_.pointer); case detail::type::custom_type: return vis(handle(value_.custom)); } return vis(monostate()); } auto format_custom(const char_type* parse_begin, parse_context& parse_ctx, Context& ctx) -> bool { if (type_ != detail::type::custom_type) return false; parse_ctx.advance_to(parse_begin); value_.custom.format(value_.custom.value, parse_ctx, ctx); return true; } }; # 2532 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" template class basic_format_args { private: ullong desc_; union { const detail::value* values_; const basic_format_arg* args_; }; constexpr auto is_packed() const -> bool { return (desc_ & detail::is_unpacked_bit) == 0; } constexpr auto has_named_args() const -> bool { return (desc_ & detail::has_named_args_bit) != 0; } constexpr auto type(int index) const -> detail::type { int shift = index * detail::packed_arg_bits; unsigned mask = (1 << detail::packed_arg_bits) - 1; return static_cast((desc_ >> shift) & mask); } template using store = detail::format_arg_store; public: using format_arg = basic_format_arg; constexpr basic_format_args() : desc_(0), args_(nullptr) {} template = 0> constexpr inline __attribute__((always_inline)) basic_format_args( const store& s) : desc_(DESC | (NUM_NAMED_ARGS != 0 ? +detail::has_named_args_bit : 0)), values_(s.args) {} template detail::max_packed_args), int> = 0> constexpr basic_format_args(const store& s) : desc_(DESC | (NUM_NAMED_ARGS != 0 ? +detail::has_named_args_bit : 0)), args_(s.args) {} constexpr basic_format_args(const format_arg* args, int count, bool has_named = false) : desc_(detail::is_unpacked_bit | detail::to_unsigned(count) | (has_named ? +detail::has_named_args_bit : 0)), args_(args) {} constexpr auto get(int id) const -> format_arg { auto arg = format_arg(); if (!is_packed()) { if (unsigned(id) < unsigned(max_size())) arg = args_[id]; return arg; } if (unsigned(id) >= detail::max_packed_args) return arg; arg.type_ = type(id); if (arg.type_ != detail::type::none_type) arg.value_ = values_[id]; return arg; } template auto get(basic_string_view name) const -> format_arg { int id = get_id(name); return id >= 0 ? get(id) : format_arg(); } template constexpr auto get_id(basic_string_view name) const -> int { if (!has_named_args()) return -1; const auto& named_args = (is_packed() ? values_[-1] : args_[-1].value_).named_args; for (size_t i = 0; i < named_args.size; ++i) { if (named_args.data[i].name == name) return named_args.data[i].id; } return -1; } auto max_size() const -> int { return int(is_packed() ? ullong(detail::max_packed_args) : desc_ & ~detail::is_unpacked_bit); } }; class context { private: appender out_; format_args args_; [[no_unique_address]] locale_ref loc_; public: using char_type = char; using iterator = appender; using format_arg = basic_format_arg; enum { builtin_types = 1 }; constexpr context(iterator out, format_args args, locale_ref loc = {}) : out_(out), args_(args), loc_(loc) {} context(context&&) = default; context(const context&) = delete; void operator=(const context&) = delete; constexpr auto arg(int id) const -> format_arg { return args_.get(id); } inline auto arg(string_view name) const -> format_arg { return args_.get(name); } constexpr auto arg_id(string_view name) const -> int { return args_.get_id(name); } auto args() const -> const format_args& { return args_; } constexpr auto out() const -> iterator { return out_; } constexpr void advance_to(iterator) {} constexpr auto locale() const -> locale_ref { return loc_; } }; template struct runtime_format_string { basic_string_view str; }; # 2679 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" inline auto runtime(string_view s) -> runtime_format_string<> { return {{s}}; } template struct fstring { private: static constexpr int num_static_named_args = detail::count_static_named_args(); using checker = detail::format_string_checker< char, int(sizeof...(T)), num_static_named_args, num_static_named_args != detail::count_named_args()>; using arg_pack = detail::arg_pack; public: string_view str; using t = fstring; template consteval inline __attribute__((always_inline)) fstring(const char (&s)[N]) : str(s, N - 1) { using namespace detail; static_assert(count<(is_view>::value && std::is_reference::value)...>() == 0, "passing views as lvalues is disallowed"); if (1) parse_format_string(str, checker(str, arg_pack())); constexpr bool unused = detail::enforce_compile_checks(); (void)unused; } template ::value), int> = 0> consteval inline __attribute__((always_inline)) fstring(const S& s) : str(s) { if (1) detail::parse_format_string(str, checker(str, arg_pack())); constexpr bool unused = detail::enforce_compile_checks(); (void)unused; } template ::value&& std::is_same::value), int> = 0 > inline __attribute__((always_inline)) fstring(const S&) : str(S()) { constexpr auto sv = string_view(S()); constexpr int x = (parse_format_string(sv, checker(sv, arg_pack())), 0); detail::ignore_unused(x); } fstring(runtime_format_string<> fmt) : str(fmt.str) {} [[deprecated]] operator const string_view&() const { return str; } auto get() const -> string_view { return str; } }; template using format_string = typename fstring::t; template using is_formattable = bool_constant::value, int*, T>, Char>, void>::value>; template concept formattable = is_formattable, Char>::value; template struct formatter::value != detail::type::custom_type>> : detail::native_formatter::value> { }; # 2758 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" template (), ullong DESC = detail::make_descriptor()> constexpr inline __attribute__((always_inline)) auto make_format_args(T&... args) -> detail::format_arg_store { return {{args...}}; } template using vargs = detail::format_arg_store(), detail::make_descriptor()>; # 2785 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" template inline auto arg(const char* name, const T& arg) -> named_arg { return {name, arg}; } template , char>::value), int> = 0 > auto vformat_to(OutputIt&& out, string_view fmt, format_args args) -> remove_cvref_t { auto&& buf = detail::get_buffer(out); detail::vformat_to(buf, fmt, args, {}); return detail::get_iterator(buf, out); } # 2812 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" template , char>::value), int> = 0 > inline __attribute__((always_inline)) auto format_to(OutputIt&& out, format_string fmt, T&&... args) -> remove_cvref_t { return vformat_to(out, fmt.str, vargs{{args...}}); } template struct format_to_n_result { OutputIt out; size_t size; }; template ::value), int> = 0> auto vformat_to_n(OutputIt out, size_t n, string_view fmt, format_args args) -> format_to_n_result { using traits = detail::fixed_buffer_traits; auto buf = detail::iterator_buffer(out, n); detail::vformat_to(buf, fmt, args, {}); return {buf.out(), buf.count()}; } template ::value), int> = 0> inline __attribute__((always_inline)) auto format_to_n(OutputIt out, size_t n, format_string fmt, T&&... args) -> format_to_n_result { return vformat_to_n(out, n, fmt.str, vargs{{args...}}); } struct format_to_result { char* out; bool truncated; constexpr operator char*() const { if (truncated) report_error("output is truncated"); return out; } }; template [[deprecated]] auto vformat_to(char (&out)[N], string_view fmt, format_args args) -> format_to_result { auto result = vformat_to_n(out, N, fmt, args); return {result.out, result.size > N}; } template inline __attribute__((always_inline)) auto format_to(char (&out)[N], format_string fmt, T&&... args) -> format_to_result { auto result = vformat_to_n(out, N, fmt.str, vargs{{args...}}); return {result.out, result.size > N}; } template [[nodiscard]] inline __attribute__((always_inline)) auto formatted_size(format_string fmt, T&&... args) -> size_t { auto buf = detail::counting_buffer<>(); detail::vformat_to(buf, fmt.str, vargs{{args...}}, {}); return buf.count(); } void vprint(string_view fmt, format_args args); void vprint(FILE* f, string_view fmt, format_args args); void vprintln(FILE* f, string_view fmt, format_args args); void vprint_buffered(FILE* f, string_view fmt, format_args args); # 2895 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" template inline __attribute__((always_inline)) void print(format_string fmt, T&&... args) { vargs va = {{args...}}; if constexpr (!detail::use_utf8) return detail::vprint_mojibake( # 2899 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" 3 4 stdout # 2899 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" , fmt.str, va, false); detail::is_locking() ? vprint_buffered( # 2900 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" 3 4 stdout # 2900 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" , fmt.str, va) : vprint(fmt.str, va); } # 2912 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" template inline __attribute__((always_inline)) void print(FILE* f, format_string fmt, T&&... args) { vargs va = {{args...}}; if constexpr (!detail::use_utf8) return detail::vprint_mojibake(f, fmt.str, va, false); detail::is_locking() ? vprint_buffered(f, fmt.str, va) : vprint(f, fmt.str, va); } template inline __attribute__((always_inline)) void println(FILE* f, format_string fmt, T&&... args) { vargs va = {{args...}}; if constexpr (detail::use_utf8) return vprintln(f, fmt.str, va); detail::vprint_mojibake(f, fmt.str, va, true); } template inline __attribute__((always_inline)) void println(format_string fmt, T&&... args) { fmt::println( # 2934 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" 3 4 stdout # 2934 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" , fmt, static_cast(args)...); } # 2937 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/base.h" #pragma GCC pop_options } } # 42 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" 2 # 51 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" # 1 "/usr/include/c++/15/stdlib.h" 1 3 # 36 "/usr/include/c++/15/stdlib.h" 3 # 1 "/usr/include/c++/15/cstdlib" 1 3 # 80 "/usr/include/c++/15/cstdlib" 3 # 80 "/usr/include/c++/15/cstdlib" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" # 1 "/usr/include/stdlib.h" 1 3 4 # 26 "/usr/include/stdlib.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4 # 27 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h" 1 3 4 # 33 "/usr/include/stdlib.h" 2 3 4 extern "C" { # 44 "/usr/include/stdlib.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/waitflags.h" 1 3 4 # 45 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/waitstatus.h" 1 3 4 # 46 "/usr/include/stdlib.h" 2 3 4 # 63 "/usr/include/stdlib.h" 3 4 typedef struct { int quot; int rem; } div_t; typedef struct { long int quot; long int rem; } ldiv_t; __extension__ typedef struct { long long int quot; long long int rem; } lldiv_t; # 102 "/usr/include/stdlib.h" 3 4 extern size_t __ctype_get_mb_cur_max (void) noexcept (true) __attribute__ ((__warn_unused_result__)); extern double atof (const char *__nptr) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern int atoi (const char *__nptr) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern long int atol (const char *__nptr) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); __extension__ extern long long int atoll (const char *__nptr) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern double strtod (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern float strtof (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern long double strtold (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); # 145 "/usr/include/stdlib.h" 3 4 extern _Float32 strtof32 (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern _Float64 strtof64 (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern _Float128 strtof128 (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern _Float32x strtof32x (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern _Float64x strtof64x (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); # 181 "/usr/include/stdlib.h" 3 4 extern long int strtol (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __attribute__ ((__nonnull__ (1))); extern unsigned long int strtoul (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __attribute__ ((__nonnull__ (1))); __extension__ extern long long int strtoq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __attribute__ ((__nonnull__ (1))); __extension__ extern unsigned long long int strtouq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __attribute__ ((__nonnull__ (1))); __extension__ extern long long int strtoll (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __attribute__ ((__nonnull__ (1))); __extension__ extern unsigned long long int strtoull (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __attribute__ ((__nonnull__ (1))); extern long int strtol (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtol") __attribute__ ((__nonnull__ (1))); extern unsigned long int strtoul (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoul") __attribute__ ((__nonnull__ (1))); __extension__ extern long long int strtoq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") __attribute__ ((__nonnull__ (1))); __extension__ extern unsigned long long int strtouq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") __attribute__ ((__nonnull__ (1))); __extension__ extern long long int strtoll (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") __attribute__ ((__nonnull__ (1))); __extension__ extern unsigned long long int strtoull (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") __attribute__ ((__nonnull__ (1))); # 282 "/usr/include/stdlib.h" 3 4 extern int strfromd (char *__dest, size_t __size, const char *__format, double __f) noexcept (true) __attribute__ ((__nonnull__ (3))); extern int strfromf (char *__dest, size_t __size, const char *__format, float __f) noexcept (true) __attribute__ ((__nonnull__ (3))); extern int strfroml (char *__dest, size_t __size, const char *__format, long double __f) noexcept (true) __attribute__ ((__nonnull__ (3))); # 302 "/usr/include/stdlib.h" 3 4 extern int strfromf32 (char *__dest, size_t __size, const char * __format, _Float32 __f) noexcept (true) __attribute__ ((__nonnull__ (3))); extern int strfromf64 (char *__dest, size_t __size, const char * __format, _Float64 __f) noexcept (true) __attribute__ ((__nonnull__ (3))); extern int strfromf128 (char *__dest, size_t __size, const char * __format, _Float128 __f) noexcept (true) __attribute__ ((__nonnull__ (3))); extern int strfromf32x (char *__dest, size_t __size, const char * __format, _Float32x __f) noexcept (true) __attribute__ ((__nonnull__ (3))); extern int strfromf64x (char *__dest, size_t __size, const char * __format, _Float64x __f) noexcept (true) __attribute__ ((__nonnull__ (3))); # 344 "/usr/include/stdlib.h" 3 4 extern long int strtol_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); extern unsigned long int strtoul_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); __extension__ extern long long int strtoll_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); __extension__ extern unsigned long long int strtoull_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); extern long int strtol_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtol_l") __attribute__ ((__nonnull__ (1, 4))); extern unsigned long int strtoul_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoul_l") __attribute__ ((__nonnull__ (1, 4))); __extension__ extern long long int strtoll_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoll_l") __attribute__ ((__nonnull__ (1, 4))); __extension__ extern unsigned long long int strtoull_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoull_l") __attribute__ ((__nonnull__ (1, 4))); # 419 "/usr/include/stdlib.h" 3 4 extern double strtod_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern float strtof_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern long double strtold_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); # 440 "/usr/include/stdlib.h" 3 4 extern _Float32 strtof32_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern _Float64 strtof64_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern _Float128 strtof128_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern _Float32x strtof32x_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern _Float64x strtof64x_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); # 484 "/usr/include/stdlib.h" 3 4 extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) atoi (const char *__nptr) noexcept (true) { return (int) strtol (__nptr, (char **) __null, 10); } extern __inline __attribute__ ((__gnu_inline__)) long int __attribute__ ((__leaf__)) atol (const char *__nptr) noexcept (true) { return strtol (__nptr, (char **) __null, 10); } __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int __attribute__ ((__leaf__)) atoll (const char *__nptr) noexcept (true) { return strtoll (__nptr, (char **) __null, 10); } # 509 "/usr/include/stdlib.h" 3 4 extern char *l64a (long int __n) noexcept (true) __attribute__ ((__warn_unused_result__)); extern long int a64l (const char *__s) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 525 "/usr/include/stdlib.h" 3 4 extern long int random (void) noexcept (true); extern void srandom (unsigned int __seed) noexcept (true); extern char *initstate (unsigned int __seed, char *__statebuf, size_t __statelen) noexcept (true) __attribute__ ((__nonnull__ (2))); extern char *setstate (char *__statebuf) noexcept (true) __attribute__ ((__nonnull__ (1))); struct random_data { int32_t *fptr; int32_t *rptr; int32_t *state; int rand_type; int rand_deg; int rand_sep; int32_t *end_ptr; }; extern int random_r (struct random_data *__restrict __buf, int32_t *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int srandom_r (unsigned int __seed, struct random_data *__buf) noexcept (true) __attribute__ ((__nonnull__ (2))); extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, size_t __statelen, struct random_data *__restrict __buf) noexcept (true) __attribute__ ((__nonnull__ (2, 4))); extern int setstate_r (char *__restrict __statebuf, struct random_data *__restrict __buf) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int rand (void) noexcept (true); extern void srand (unsigned int __seed) noexcept (true); extern int rand_r (unsigned int *__seed) noexcept (true); extern double drand48 (void) noexcept (true); extern double erand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); extern long int lrand48 (void) noexcept (true); extern long int nrand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); extern long int mrand48 (void) noexcept (true); extern long int jrand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); extern void srand48 (long int __seedval) noexcept (true); extern unsigned short int *seed48 (unsigned short int __seed16v[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); extern void lcong48 (unsigned short int __param[7]) noexcept (true) __attribute__ ((__nonnull__ (1))); struct drand48_data { unsigned short int __x[3]; unsigned short int __old_x[3]; unsigned short int __c; unsigned short int __init; __extension__ unsigned long long int __a; }; extern int drand48_r (struct drand48_data *__restrict __buffer, double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int erand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int lrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int nrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int mrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int jrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int srand48_r (long int __seedval, struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (2))); extern int seed48_r (unsigned short int __seed16v[3], struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int lcong48_r (unsigned short int __param[7], struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern __uint32_t arc4random (void) noexcept (true) __attribute__ ((__warn_unused_result__)); extern void arc4random_buf (void *__buf, size_t __size) noexcept (true) __attribute__ ((__nonnull__ (1))); extern __uint32_t arc4random_uniform (__uint32_t __upper_bound) noexcept (true) __attribute__ ((__warn_unused_result__)); extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); extern void *calloc (size_t __nmemb, size_t __size) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); extern void *realloc (void *__ptr, size_t __size) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); extern void free (void *__ptr) noexcept (true); # 702 "/usr/include/stdlib.h" 3 4 extern void free_sized (void *__ptr, size_t __size) noexcept (true); extern void free_aligned_sized (void *__ptr, size_t __alignment, size_t __size) noexcept (true); # 717 "/usr/include/stdlib.h" 3 4 extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2, 3))) __attribute__ ((__malloc__ (__builtin_free, 1))); extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) noexcept (true) __attribute__ ((__malloc__ (reallocarray, 1))); # 1 "/usr/include/alloca.h" 1 3 4 # 24 "/usr/include/alloca.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h" 1 3 4 # 25 "/usr/include/alloca.h" 2 3 4 extern "C" { extern void *alloca (size_t __size) noexcept (true); } # 729 "/usr/include/stdlib.h" 2 3 4 extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern void *aligned_alloc (size_t __alignment, size_t __size) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)); extern void abort (void) noexcept (true) __attribute__ ((__noreturn__)) __attribute__ ((__cold__)); extern int atexit (void (*__func) (void)) noexcept (true) __attribute__ ((__nonnull__ (1))); extern "C++" int at_quick_exit (void (*__func) (void)) noexcept (true) __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); # 771 "/usr/include/stdlib.h" 3 4 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) noexcept (true) __attribute__ ((__nonnull__ (1))); extern void exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); extern void quick_exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); extern void _Exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); extern char *getenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern char *secure_getenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern int putenv (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int setenv (const char *__name, const char *__value, int __replace) noexcept (true) __attribute__ ((__nonnull__ (2))); extern int unsetenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int clearenv (void) noexcept (true); # 836 "/usr/include/stdlib.h" 3 4 extern char *mktemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))); # 849 "/usr/include/stdlib.h" 3 4 extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 859 "/usr/include/stdlib.h" 3 4 extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 871 "/usr/include/stdlib.h" 3 4 extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 881 "/usr/include/stdlib.h" 3 4 extern int mkstemps64 (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 892 "/usr/include/stdlib.h" 3 4 extern char *mkdtemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 903 "/usr/include/stdlib.h" 3 4 extern int mkostemp (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 913 "/usr/include/stdlib.h" 3 4 extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 923 "/usr/include/stdlib.h" 3 4 extern int mkostemps (char *__template, int __suffixlen, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 935 "/usr/include/stdlib.h" 3 4 extern int mkostemps64 (char *__template, int __suffixlen, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 945 "/usr/include/stdlib.h" 3 4 extern int system (const char *__command) __attribute__ ((__warn_unused_result__)); extern char *canonicalize_file_name (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1))) __attribute__ ((__warn_unused_result__)); # 962 "/usr/include/stdlib.h" 3 4 extern char *realpath (const char *__restrict __name, char *__restrict __resolved) noexcept (true) __attribute__ ((__warn_unused_result__)); typedef int (*__compar_fn_t) (const void *, const void *); typedef __compar_fn_t comparison_fn_t; typedef int (*__compar_d_fn_t) (const void *, const void *, void *); extern void *bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__)); # 1 "/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h" 1 3 4 # 19 "/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h" 3 4 extern __inline __attribute__ ((__gnu_inline__)) void * bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) { const void *__p; int __comparison; while (__nmemb) { __p = (const void *) (((const char *) __base) + ((__nmemb >> 1) * __size)); __comparison = (*__compar) (__key, __p); if (__comparison == 0) { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wcast-qual" return (void *) __p; #pragma GCC diagnostic pop } if (__comparison > 0) { __base = ((const char *) __p) + __size; --__nmemb; } __nmemb >>= 1; } return __null; } # 988 "/usr/include/stdlib.h" 2 3 4 # 998 "/usr/include/stdlib.h" 3 4 extern void qsort (void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); extern void qsort_r (void *__base, size_t __nmemb, size_t __size, __compar_d_fn_t __compar, void *__arg) __attribute__ ((__nonnull__ (1, 4))); extern int abs (int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); extern long int labs (long int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); __extension__ extern long long int llabs (long long int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); extern unsigned int uabs (int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); extern unsigned long int ulabs (long int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); __extension__ extern unsigned long long int ullabs (long long int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); extern div_t div (int __numer, int __denom) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); extern ldiv_t ldiv (long int __numer, long int __denom) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); __extension__ extern lldiv_t lldiv (long long int __numer, long long int __denom) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); # 1046 "/usr/include/stdlib.h" 3 4 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); extern char *gcvt (double __value, int __ndigit, char *__buf) noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); extern char *qecvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); extern char *qfcvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); extern char *qgcvt (long double __value, int __ndigit, char *__buf) noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); extern int qecvt_r (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); extern int qfcvt_r (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); extern int mblen (const char *__s, size_t __n) noexcept (true); extern int mbtowc (wchar_t *__restrict __pwc, const char *__restrict __s, size_t __n) noexcept (true); extern int wctomb (char *__s, wchar_t __wchar) noexcept (true); extern size_t mbstowcs (wchar_t *__restrict __pwcs, const char *__restrict __s, size_t __n) noexcept (true) __attribute__ ((__access__ (__read_only__, 2))); extern size_t wcstombs (char *__restrict __s, const wchar_t *__restrict __pwcs, size_t __n) noexcept (true) __attribute__ ((__access__ (__read_only__, 2))); extern int rpmatch (const char *__response) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 1133 "/usr/include/stdlib.h" 3 4 extern int getsubopt (char **__restrict __optionp, char *const *__restrict __tokens, char **__restrict __valuep) noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__)); extern int posix_openpt (int __oflag) __attribute__ ((__warn_unused_result__)); extern int grantpt (int __fd) noexcept (true); extern int unlockpt (int __fd) noexcept (true); extern char *ptsname (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); extern int ptsname_r (int __fd, char *__buf, size_t __buflen) noexcept (true) __attribute__ ((__nonnull__ (2))) ; extern int getpt (void); extern int getloadavg (double __loadavg[], int __nelem) noexcept (true) __attribute__ ((__nonnull__ (1))); # 1199 "/usr/include/stdlib.h" 3 4 extern size_t memalignment (const void *__p); # 1 "/usr/include/x86_64-linux-gnu/bits/stdlib-float.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/stdlib-float.h" 3 4 extern __inline __attribute__ ((__gnu_inline__)) double __attribute__ ((__leaf__)) atof (const char *__nptr) noexcept (true) { return strtod (__nptr, (char **) __null); } # 1203 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/stdlib.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/stdlib.h" 3 4 extern char *__realpath_chk (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) noexcept (true) __attribute__ ((__warn_unused_result__)); extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) noexcept (true) __asm__ ("" "realpath") __attribute__ ((__warn_unused_result__)); extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) noexcept (true) __asm__ ("" "__realpath_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * __attribute__ ((__leaf__)) realpath (const char *__restrict __name, char * __restrict __resolved) noexcept (true) { size_t __sz = __builtin_dynamic_object_size (__resolved, 1); if (__sz == (size_t) -1) return __realpath_alias (__name, __resolved); if ((((__typeof (4096)) 0 < (__typeof (4096)) -1 || (__builtin_constant_p (4096) && (4096) > 0)) && __builtin_constant_p ((((long unsigned int) (4096)) <= (__sz) / (sizeof (char)))) && !(((long unsigned int) (4096)) <= (__sz) / (sizeof (char))))) return __realpath_chk_warn (__name, __resolved, __sz); return __realpath_chk (__name, __resolved, __sz); } extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ptsname_r") __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ptsname_r_chk") __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) ptsname_r (int __fd, char * __buf, size_t __buflen) noexcept (true) { return (((__builtin_constant_p (__builtin_dynamic_object_size (__buf, 1)) && (__builtin_dynamic_object_size (__buf, 1)) == (long unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((long unsigned int) (__buflen)) <= ((__builtin_dynamic_object_size (__buf, 1))) / ((sizeof (char))))) && (((long unsigned int) (__buflen)) <= ((__builtin_dynamic_object_size (__buf, 1))) / ((sizeof (char)))))) ? __ptsname_r_alias (__fd, __buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((long unsigned int) (__buflen)) <= (__builtin_dynamic_object_size (__buf, 1)) / (sizeof (char)))) && !(((long unsigned int) (__buflen)) <= (__builtin_dynamic_object_size (__buf, 1)) / (sizeof (char)))) ? __ptsname_r_chk_warn (__fd, __buf, __buflen, __builtin_dynamic_object_size (__buf, 1)) : __ptsname_r_chk (__fd, __buf, __buflen, __builtin_dynamic_object_size (__buf, 1)))) ; } extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) noexcept (true) __attribute__ ((__warn_unused_result__)); extern int __wctomb_alias (char *__s, wchar_t __wchar) noexcept (true) __asm__ ("" "wctomb") __attribute__ ((__warn_unused_result__)); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int __attribute__ ((__leaf__)) wctomb (char * __s, wchar_t __wchar) noexcept (true) { if (__builtin_dynamic_object_size (__s, 1) != (size_t) -1 && 16 > __builtin_dynamic_object_size (__s, 1)) return __wctomb_chk (__s, __wchar, __builtin_dynamic_object_size (__s, 1)); return __wctomb_alias (__s, __wchar); } extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, size_t __dstlen) noexcept (true) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); extern size_t __mbstowcs_nulldst (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") __attribute__ ((__access__ (__read_only__, 2))); extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); extern size_t __mbstowcs_chk_warn (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, size_t __dstlen) noexcept (true) __asm__ ("" "__mbstowcs_chk") __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) mbstowcs (wchar_t * __restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) { if (__builtin_constant_p (__dst == __null) && __dst == __null) return __mbstowcs_nulldst (__dst, __src, __len); else return (((__builtin_constant_p (__builtin_dynamic_object_size (__dst, 1)) && (__builtin_dynamic_object_size (__dst, 1)) == (long unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= ((__builtin_dynamic_object_size (__dst, 1))) / ((sizeof (wchar_t))))) && (((long unsigned int) (__len)) <= ((__builtin_dynamic_object_size (__dst, 1))) / ((sizeof (wchar_t)))))) ? __mbstowcs_alias (__dst, __src, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (wchar_t)))) && !(((long unsigned int) (__len)) <= (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (wchar_t)))) ? __mbstowcs_chk_warn (__dst, __src, __len, (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (wchar_t))) : __mbstowcs_chk (__dst, __src, __len, (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (wchar_t))))) ; } extern size_t __wcstombs_chk (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len, size_t __dstlen) noexcept (true) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "wcstombs") __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); extern size_t __wcstombs_chk_warn (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len, size_t __dstlen) noexcept (true) __asm__ ("" "__wcstombs_chk") __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len"))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) wcstombs (char * __restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) { return (((__builtin_constant_p (__builtin_dynamic_object_size (__dst, 1)) && (__builtin_dynamic_object_size (__dst, 1)) == (long unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= ((__builtin_dynamic_object_size (__dst, 1))) / ((sizeof (char))))) && (((long unsigned int) (__len)) <= ((__builtin_dynamic_object_size (__dst, 1))) / ((sizeof (char)))))) ? __wcstombs_alias (__dst, __src, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (char)))) && !(((long unsigned int) (__len)) <= (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (char)))) ? __wcstombs_chk_warn (__dst, __src, __len, __builtin_dynamic_object_size (__dst, 1)) : __wcstombs_chk (__dst, __src, __len, __builtin_dynamic_object_size (__dst, 1)))) ; } # 1207 "/usr/include/stdlib.h" 2 3 4 } # 84 "/usr/include/c++/15/cstdlib" 2 3 # 85 "/usr/include/c++/15/cstdlib" 3 #pragma GCC diagnostic pop # 1 "/usr/include/c++/15/bits/std_abs.h" 1 3 # 39 "/usr/include/c++/15/bits/std_abs.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" #pragma GCC diagnostic ignored "-Wlong-long" # 52 "/usr/include/c++/15/bits/std_abs.h" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { using ::abs; inline long abs(long __i) { return __builtin_labs(__i); } inline long long abs(long long __x) { return __builtin_llabs (__x); } # 76 "/usr/include/c++/15/bits/std_abs.h" 3 inline constexpr double abs(double __x) { return __builtin_fabs(__x); } inline constexpr float abs(float __x) { return __builtin_fabsf(__x); } inline constexpr long double abs(long double __x) { return __builtin_fabsl(__x); } __extension__ inline constexpr __int128 abs(__int128 __x) { return __x >= 0 ? __x : -__x; } # 107 "/usr/include/c++/15/bits/std_abs.h" 3 constexpr _Float16 abs(_Float16 __x) { return _Float16(__builtin_fabsf(__x)); } constexpr _Float32 abs(_Float32 __x) { return __builtin_fabsf(__x); } constexpr _Float64 abs(_Float64 __x) { return __builtin_fabs(__x); } constexpr _Float128 abs(_Float128 __x) { return __builtin_fabsf128(__x); } constexpr __gnu_cxx::__bfloat16_t abs(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_fabsf(__x)); } __extension__ inline constexpr __float128 abs(__float128 __x) { return __builtin_fabsf128(__x); } } } #pragma GCC diagnostic pop # 88 "/usr/include/c++/15/cstdlib" 2 3 # 131 "/usr/include/c++/15/cstdlib" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { using ::div_t; using ::ldiv_t; using ::abort; using ::aligned_alloc; using ::atexit; using ::at_quick_exit; using ::atof; using ::atoi; using ::atol; using ::bsearch; using ::calloc; using ::div; using ::exit; using ::free; using ::getenv; using ::labs; using ::ldiv; using ::malloc; using ::mblen; using ::mbstowcs; using ::mbtowc; using ::qsort; using ::quick_exit; using ::rand; using ::realloc; using ::srand; using ::strtod; using ::strtol; using ::strtoul; using ::system; using ::wcstombs; using ::wctomb; inline ldiv_t div(long __i, long __j) noexcept { return ldiv(__i, __j); } } # 205 "/usr/include/c++/15/cstdlib" 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { using ::lldiv_t; using ::_Exit; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wlong-long" using ::llabs; inline lldiv_t div(long long __n, long long __d) { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } using ::lldiv; #pragma GCC diagnostic pop # 240 "/usr/include/c++/15/cstdlib" 3 using ::atoll; using ::strtoll; using ::strtoull; using ::strtof; using ::strtold; } namespace std { using ::__gnu_cxx::lldiv_t; using ::__gnu_cxx::_Exit; using ::__gnu_cxx::llabs; using ::__gnu_cxx::div; using ::__gnu_cxx::lldiv; using ::__gnu_cxx::atoll; using ::__gnu_cxx::strtof; using ::__gnu_cxx::strtoll; using ::__gnu_cxx::strtoull; using ::__gnu_cxx::strtold; } # 284 "/usr/include/c++/15/cstdlib" 3 } # 37 "/usr/include/c++/15/stdlib.h" 2 3 using std::abort; using std::atexit; using std::exit; using std::at_quick_exit; using std::quick_exit; using std::_Exit; using std::div_t; using std::ldiv_t; using std::abs; using std::atof; using std::atoi; using std::atol; using std::bsearch; using std::calloc; using std::div; using std::free; using std::getenv; using std::labs; using std::ldiv; using std::malloc; using std::mblen; using std::mbstowcs; using std::mbtowc; using std::qsort; using std::rand; using std::realloc; using std::srand; using std::strtod; using std::strtol; using std::strtoul; using std::system; using std::wcstombs; using std::wctomb; # 52 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" 2 # 1 "/usr/include/c++/15/cmath" 1 3 # 46 "/usr/include/c++/15/cmath" 3 # 1 "/usr/include/c++/15/bits/requires_hosted.h" 1 3 # 47 "/usr/include/c++/15/cmath" 2 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" # 1 "/usr/include/math.h" 1 3 4 # 27 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4 # 28 "/usr/include/math.h" 2 3 4 extern "C" { # 1 "/usr/include/x86_64-linux-gnu/bits/math-vector.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/bits/math-vector.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/math-vector.h" 2 3 4 # 38 "/usr/include/math.h" 2 3 4 # 157 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/flt-eval-method.h" 1 3 4 # 158 "/usr/include/math.h" 2 3 4 # 170 "/usr/include/math.h" 3 4 typedef float float_t; typedef double double_t; typedef long double long_double_t; typedef _Float32 _Float32_t; typedef _Float64 _Float64_t; typedef _Float128 _Float128_t; # 376 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/fp-logb.h" 1 3 4 # 377 "/usr/include/math.h" 2 3 4 # 419 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/fp-fast.h" 1 3 4 # 420 "/usr/include/math.h" 2 3 4 enum { FP_INT_UPWARD = 0, FP_INT_DOWNWARD = 1, FP_INT_TOWARDZERO = 2, FP_INT_TONEARESTFROMZERO = 3, FP_INT_TONEAREST = 4, }; # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-macros.h" 1 3 4 # 444 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 1 3 4 # 20 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 3 4 extern int __fpclassify (double __value) noexcept (true) __attribute__ ((__const__)); extern int __signbit (double __value) noexcept (true) __attribute__ ((__const__)); extern int __isinf (double __value) noexcept (true) __attribute__ ((__const__)); extern int __finite (double __value) noexcept (true) __attribute__ ((__const__)); extern int __isnan (double __value) noexcept (true) __attribute__ ((__const__)); extern int __iseqsig (double __x, double __y) noexcept (true); extern int __issignaling (double __value) noexcept (true) __attribute__ ((__const__)); # 450 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern double acos (double __x) noexcept (true); extern double __acos (double __x) noexcept (true); extern double asin (double __x) noexcept (true); extern double __asin (double __x) noexcept (true); extern double atan (double __x) noexcept (true); extern double __atan (double __x) noexcept (true); extern double atan2 (double __y, double __x) noexcept (true); extern double __atan2 (double __y, double __x) noexcept (true); extern double cos (double __x) noexcept (true); extern double __cos (double __x) noexcept (true); extern double sin (double __x) noexcept (true); extern double __sin (double __x) noexcept (true); extern double tan (double __x) noexcept (true); extern double __tan (double __x) noexcept (true); extern double acospi (double __x) noexcept (true); extern double __acospi (double __x) noexcept (true); extern double acospi (double __x) noexcept (true); extern double __acospi (double __x) noexcept (true); extern double asinpi (double __x) noexcept (true); extern double __asinpi (double __x) noexcept (true); extern double asinpi (double __x) noexcept (true); extern double __asinpi (double __x) noexcept (true); extern double atanpi (double __x) noexcept (true); extern double __atanpi (double __x) noexcept (true); extern double atanpi (double __x) noexcept (true); extern double __atanpi (double __x) noexcept (true); extern double atan2pi (double __y, double __x) noexcept (true); extern double __atan2pi (double __y, double __x) noexcept (true); extern double atan2pi (double __y, double __x) noexcept (true); extern double __atan2pi (double __y, double __x) noexcept (true); extern double cospi (double __x) noexcept (true); extern double __cospi (double __x) noexcept (true); extern double sinpi (double __x) noexcept (true); extern double __sinpi (double __x) noexcept (true); extern double tanpi (double __x) noexcept (true); extern double __tanpi (double __x) noexcept (true); extern double cosh (double __x) noexcept (true); extern double __cosh (double __x) noexcept (true); extern double sinh (double __x) noexcept (true); extern double __sinh (double __x) noexcept (true); extern double tanh (double __x) noexcept (true); extern double __tanh (double __x) noexcept (true); extern void sincos (double __x, double *__sinx, double *__cosx) noexcept (true); extern void __sincos (double __x, double *__sinx, double *__cosx) noexcept (true) ; extern double acosh (double __x) noexcept (true); extern double __acosh (double __x) noexcept (true); extern double asinh (double __x) noexcept (true); extern double __asinh (double __x) noexcept (true); extern double atanh (double __x) noexcept (true); extern double __atanh (double __x) noexcept (true); extern double exp (double __x) noexcept (true); extern double __exp (double __x) noexcept (true); extern double frexp (double __x, int *__exponent) noexcept (true); extern double __frexp (double __x, int *__exponent) noexcept (true); extern double ldexp (double __x, int __exponent) noexcept (true); extern double __ldexp (double __x, int __exponent) noexcept (true); extern double log (double __x) noexcept (true); extern double __log (double __x) noexcept (true); extern double log10 (double __x) noexcept (true); extern double __log10 (double __x) noexcept (true); extern double modf (double __x, double *__iptr) noexcept (true); extern double __modf (double __x, double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern double exp10 (double __x) noexcept (true); extern double __exp10 (double __x) noexcept (true); extern double exp2m1 (double __x) noexcept (true); extern double __exp2m1 (double __x) noexcept (true); extern double exp10m1 (double __x) noexcept (true); extern double __exp10m1 (double __x) noexcept (true); extern double log2p1 (double __x) noexcept (true); extern double __log2p1 (double __x) noexcept (true); extern double log10p1 (double __x) noexcept (true); extern double __log10p1 (double __x) noexcept (true); extern double logp1 (double __x) noexcept (true); extern double __logp1 (double __x) noexcept (true); extern double expm1 (double __x) noexcept (true); extern double __expm1 (double __x) noexcept (true); extern double log1p (double __x) noexcept (true); extern double __log1p (double __x) noexcept (true); extern double logb (double __x) noexcept (true); extern double __logb (double __x) noexcept (true); extern double exp2 (double __x) noexcept (true); extern double __exp2 (double __x) noexcept (true); extern double log2 (double __x) noexcept (true); extern double __log2 (double __x) noexcept (true); extern double pow (double __x, double __y) noexcept (true); extern double __pow (double __x, double __y) noexcept (true); extern double sqrt (double __x) noexcept (true); extern double __sqrt (double __x) noexcept (true); extern double hypot (double __x, double __y) noexcept (true); extern double __hypot (double __x, double __y) noexcept (true); extern double cbrt (double __x) noexcept (true); extern double __cbrt (double __x) noexcept (true); extern double compoundn (double __x, long long int __y) noexcept (true); extern double __compoundn (double __x, long long int __y) noexcept (true); extern double pown (double __x, long long int __y) noexcept (true); extern double __pown (double __x, long long int __y) noexcept (true); extern double powr (double __x, double __y) noexcept (true); extern double __powr (double __x, double __y) noexcept (true); extern double rootn (double __x, long long int __y) noexcept (true); extern double __rootn (double __x, long long int __y) noexcept (true); extern double rsqrt (double __x) noexcept (true); extern double __rsqrt (double __x) noexcept (true); extern double ceil (double __x) noexcept (true) __attribute__ ((__const__)); extern double fabs (double __x) noexcept (true) __attribute__ ((__const__)); extern double floor (double __x) noexcept (true) __attribute__ ((__const__)); extern double fmod (double __x, double __y) noexcept (true); extern double __fmod (double __x, double __y) noexcept (true); # 237 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern int finite (double __value) noexcept (true) __attribute__ ((__const__)); extern double drem (double __x, double __y) noexcept (true); extern double __drem (double __x, double __y) noexcept (true); extern double significand (double __x) noexcept (true); extern double __significand (double __x) noexcept (true); extern double copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double nan (const char *__tagb) noexcept (true); extern double __nan (const char *__tagb) noexcept (true); # 274 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern double j0 (double) noexcept (true); extern double __j0 (double) noexcept (true); extern double j1 (double) noexcept (true); extern double __j1 (double) noexcept (true); extern double jn (int, double) noexcept (true); extern double __jn (int, double) noexcept (true); extern double y0 (double) noexcept (true); extern double __y0 (double) noexcept (true); extern double y1 (double) noexcept (true); extern double __y1 (double) noexcept (true); extern double yn (int, double) noexcept (true); extern double __yn (int, double) noexcept (true); extern double erf (double) noexcept (true); extern double __erf (double) noexcept (true); extern double erfc (double) noexcept (true); extern double __erfc (double) noexcept (true); extern double lgamma (double) noexcept (true); extern double __lgamma (double) noexcept (true); extern double tgamma (double) noexcept (true); extern double __tgamma (double) noexcept (true); extern double gamma (double) noexcept (true); extern double __gamma (double) noexcept (true); extern double lgamma_r (double, int *__signgamp) noexcept (true); extern double __lgamma_r (double, int *__signgamp) noexcept (true); extern double rint (double __x) noexcept (true); extern double __rint (double __x) noexcept (true); extern double nextafter (double __x, double __y) noexcept (true); extern double __nextafter (double __x, double __y) noexcept (true); extern double nexttoward (double __x, long double __y) noexcept (true); extern double __nexttoward (double __x, long double __y) noexcept (true); extern double nextdown (double __x) noexcept (true); extern double __nextdown (double __x) noexcept (true); extern double nextup (double __x) noexcept (true); extern double __nextup (double __x) noexcept (true); extern double remainder (double __x, double __y) noexcept (true); extern double __remainder (double __x, double __y) noexcept (true); extern double scalbn (double __x, int __n) noexcept (true); extern double __scalbn (double __x, int __n) noexcept (true); extern int ilogb (double __x) noexcept (true); extern int __ilogb (double __x) noexcept (true); extern long int llogb (double __x) noexcept (true); extern long int __llogb (double __x) noexcept (true); extern double scalbln (double __x, long int __n) noexcept (true); extern double __scalbln (double __x, long int __n) noexcept (true); extern double nearbyint (double __x) noexcept (true); extern double __nearbyint (double __x) noexcept (true); extern double round (double __x) noexcept (true) __attribute__ ((__const__)); extern double trunc (double __x) noexcept (true) __attribute__ ((__const__)); extern double remquo (double __x, double __y, int *__quo) noexcept (true); extern double __remquo (double __x, double __y, int *__quo) noexcept (true); extern long int lrint (double __x) noexcept (true); extern long int __lrint (double __x) noexcept (true); __extension__ extern long long int llrint (double __x) noexcept (true); extern long long int __llrint (double __x) noexcept (true); extern long int lround (double __x) noexcept (true); extern long int __lround (double __x) noexcept (true); __extension__ extern long long int llround (double __x) noexcept (true); extern long long int __llround (double __x) noexcept (true); extern double fdim (double __x, double __y) noexcept (true); extern double __fdim (double __x, double __y) noexcept (true); extern double fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fma (double __x, double __y, double __z) noexcept (true); extern double __fma (double __x, double __y, double __z) noexcept (true); extern double roundeven (double __x) noexcept (true) __attribute__ ((__const__)); extern double fromfp (double __x, int __round, unsigned int __width) noexcept (true); extern double __fromfp (double __x, int __round, unsigned int __width) noexcept (true); extern double ufromfp (double __x, int __round, unsigned int __width) noexcept (true); extern double __ufromfp (double __x, int __round, unsigned int __width) noexcept (true); extern double fromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern double __fromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern double ufromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern double __ufromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern int canonicalize (double *__cx, const double *__x) noexcept (true); extern double fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fmaximum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fminimum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern int totalorder (const double *__x, const double *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermag (const double *__x, const double *__y) noexcept (true) __attribute__ ((__pure__)); extern double getpayload (const double *__x) noexcept (true); extern double __getpayload (const double *__x) noexcept (true); extern int setpayload (double *__x, double __payload) noexcept (true); extern int setpayloadsig (double *__x, double __payload) noexcept (true); extern double scalb (double __x, double __n) noexcept (true); extern double __scalb (double __x, double __n) noexcept (true); # 451 "/usr/include/math.h" 2 3 4 # 466 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 1 3 4 # 20 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 3 4 extern int __fpclassifyf (float __value) noexcept (true) __attribute__ ((__const__)); extern int __signbitf (float __value) noexcept (true) __attribute__ ((__const__)); extern int __isinff (float __value) noexcept (true) __attribute__ ((__const__)); extern int __finitef (float __value) noexcept (true) __attribute__ ((__const__)); extern int __isnanf (float __value) noexcept (true) __attribute__ ((__const__)); extern int __iseqsigf (float __x, float __y) noexcept (true); extern int __issignalingf (float __value) noexcept (true) __attribute__ ((__const__)); # 467 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern float acosf (float __x) noexcept (true); extern float __acosf (float __x) noexcept (true); extern float asinf (float __x) noexcept (true); extern float __asinf (float __x) noexcept (true); extern float atanf (float __x) noexcept (true); extern float __atanf (float __x) noexcept (true); extern float atan2f (float __y, float __x) noexcept (true); extern float __atan2f (float __y, float __x) noexcept (true); extern float cosf (float __x) noexcept (true); extern float __cosf (float __x) noexcept (true); extern float sinf (float __x) noexcept (true); extern float __sinf (float __x) noexcept (true); extern float tanf (float __x) noexcept (true); extern float __tanf (float __x) noexcept (true); extern float acospif (float __x) noexcept (true); extern float __acospif (float __x) noexcept (true); extern float acospif (float __x) noexcept (true); extern float __acospif (float __x) noexcept (true); extern float asinpif (float __x) noexcept (true); extern float __asinpif (float __x) noexcept (true); extern float asinpif (float __x) noexcept (true); extern float __asinpif (float __x) noexcept (true); extern float atanpif (float __x) noexcept (true); extern float __atanpif (float __x) noexcept (true); extern float atanpif (float __x) noexcept (true); extern float __atanpif (float __x) noexcept (true); extern float atan2pif (float __y, float __x) noexcept (true); extern float __atan2pif (float __y, float __x) noexcept (true); extern float atan2pif (float __y, float __x) noexcept (true); extern float __atan2pif (float __y, float __x) noexcept (true); extern float cospif (float __x) noexcept (true); extern float __cospif (float __x) noexcept (true); extern float sinpif (float __x) noexcept (true); extern float __sinpif (float __x) noexcept (true); extern float tanpif (float __x) noexcept (true); extern float __tanpif (float __x) noexcept (true); extern float coshf (float __x) noexcept (true); extern float __coshf (float __x) noexcept (true); extern float sinhf (float __x) noexcept (true); extern float __sinhf (float __x) noexcept (true); extern float tanhf (float __x) noexcept (true); extern float __tanhf (float __x) noexcept (true); extern void sincosf (float __x, float *__sinx, float *__cosx) noexcept (true); extern void __sincosf (float __x, float *__sinx, float *__cosx) noexcept (true) ; extern float acoshf (float __x) noexcept (true); extern float __acoshf (float __x) noexcept (true); extern float asinhf (float __x) noexcept (true); extern float __asinhf (float __x) noexcept (true); extern float atanhf (float __x) noexcept (true); extern float __atanhf (float __x) noexcept (true); extern float expf (float __x) noexcept (true); extern float __expf (float __x) noexcept (true); extern float frexpf (float __x, int *__exponent) noexcept (true); extern float __frexpf (float __x, int *__exponent) noexcept (true); extern float ldexpf (float __x, int __exponent) noexcept (true); extern float __ldexpf (float __x, int __exponent) noexcept (true); extern float logf (float __x) noexcept (true); extern float __logf (float __x) noexcept (true); extern float log10f (float __x) noexcept (true); extern float __log10f (float __x) noexcept (true); extern float modff (float __x, float *__iptr) noexcept (true); extern float __modff (float __x, float *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern float exp10f (float __x) noexcept (true); extern float __exp10f (float __x) noexcept (true); extern float exp2m1f (float __x) noexcept (true); extern float __exp2m1f (float __x) noexcept (true); extern float exp10m1f (float __x) noexcept (true); extern float __exp10m1f (float __x) noexcept (true); extern float log2p1f (float __x) noexcept (true); extern float __log2p1f (float __x) noexcept (true); extern float log10p1f (float __x) noexcept (true); extern float __log10p1f (float __x) noexcept (true); extern float logp1f (float __x) noexcept (true); extern float __logp1f (float __x) noexcept (true); extern float expm1f (float __x) noexcept (true); extern float __expm1f (float __x) noexcept (true); extern float log1pf (float __x) noexcept (true); extern float __log1pf (float __x) noexcept (true); extern float logbf (float __x) noexcept (true); extern float __logbf (float __x) noexcept (true); extern float exp2f (float __x) noexcept (true); extern float __exp2f (float __x) noexcept (true); extern float log2f (float __x) noexcept (true); extern float __log2f (float __x) noexcept (true); extern float powf (float __x, float __y) noexcept (true); extern float __powf (float __x, float __y) noexcept (true); extern float sqrtf (float __x) noexcept (true); extern float __sqrtf (float __x) noexcept (true); extern float hypotf (float __x, float __y) noexcept (true); extern float __hypotf (float __x, float __y) noexcept (true); extern float cbrtf (float __x) noexcept (true); extern float __cbrtf (float __x) noexcept (true); extern float compoundnf (float __x, long long int __y) noexcept (true); extern float __compoundnf (float __x, long long int __y) noexcept (true); extern float pownf (float __x, long long int __y) noexcept (true); extern float __pownf (float __x, long long int __y) noexcept (true); extern float powrf (float __x, float __y) noexcept (true); extern float __powrf (float __x, float __y) noexcept (true); extern float rootnf (float __x, long long int __y) noexcept (true); extern float __rootnf (float __x, long long int __y) noexcept (true); extern float rsqrtf (float __x) noexcept (true); extern float __rsqrtf (float __x) noexcept (true); extern float ceilf (float __x) noexcept (true) __attribute__ ((__const__)); extern float fabsf (float __x) noexcept (true) __attribute__ ((__const__)); extern float floorf (float __x) noexcept (true) __attribute__ ((__const__)); extern float fmodf (float __x, float __y) noexcept (true); extern float __fmodf (float __x, float __y) noexcept (true); # 231 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern int isinff (float __value) noexcept (true) __attribute__ ((__const__)); extern int finitef (float __value) noexcept (true) __attribute__ ((__const__)); extern float dremf (float __x, float __y) noexcept (true); extern float __dremf (float __x, float __y) noexcept (true); extern float significandf (float __x) noexcept (true); extern float __significandf (float __x) noexcept (true); extern float copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float nanf (const char *__tagb) noexcept (true); extern float __nanf (const char *__tagb) noexcept (true); # 267 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern int isnanf (float __value) noexcept (true) __attribute__ ((__const__)); extern float j0f (float) noexcept (true); extern float __j0f (float) noexcept (true); extern float j1f (float) noexcept (true); extern float __j1f (float) noexcept (true); extern float jnf (int, float) noexcept (true); extern float __jnf (int, float) noexcept (true); extern float y0f (float) noexcept (true); extern float __y0f (float) noexcept (true); extern float y1f (float) noexcept (true); extern float __y1f (float) noexcept (true); extern float ynf (int, float) noexcept (true); extern float __ynf (int, float) noexcept (true); extern float erff (float) noexcept (true); extern float __erff (float) noexcept (true); extern float erfcf (float) noexcept (true); extern float __erfcf (float) noexcept (true); extern float lgammaf (float) noexcept (true); extern float __lgammaf (float) noexcept (true); extern float tgammaf (float) noexcept (true); extern float __tgammaf (float) noexcept (true); extern float gammaf (float) noexcept (true); extern float __gammaf (float) noexcept (true); extern float lgammaf_r (float, int *__signgamp) noexcept (true); extern float __lgammaf_r (float, int *__signgamp) noexcept (true); extern float rintf (float __x) noexcept (true); extern float __rintf (float __x) noexcept (true); extern float nextafterf (float __x, float __y) noexcept (true); extern float __nextafterf (float __x, float __y) noexcept (true); extern float nexttowardf (float __x, long double __y) noexcept (true); extern float __nexttowardf (float __x, long double __y) noexcept (true); extern float nextdownf (float __x) noexcept (true); extern float __nextdownf (float __x) noexcept (true); extern float nextupf (float __x) noexcept (true); extern float __nextupf (float __x) noexcept (true); extern float remainderf (float __x, float __y) noexcept (true); extern float __remainderf (float __x, float __y) noexcept (true); extern float scalbnf (float __x, int __n) noexcept (true); extern float __scalbnf (float __x, int __n) noexcept (true); extern int ilogbf (float __x) noexcept (true); extern int __ilogbf (float __x) noexcept (true); extern long int llogbf (float __x) noexcept (true); extern long int __llogbf (float __x) noexcept (true); extern float scalblnf (float __x, long int __n) noexcept (true); extern float __scalblnf (float __x, long int __n) noexcept (true); extern float nearbyintf (float __x) noexcept (true); extern float __nearbyintf (float __x) noexcept (true); extern float roundf (float __x) noexcept (true) __attribute__ ((__const__)); extern float truncf (float __x) noexcept (true) __attribute__ ((__const__)); extern float remquof (float __x, float __y, int *__quo) noexcept (true); extern float __remquof (float __x, float __y, int *__quo) noexcept (true); extern long int lrintf (float __x) noexcept (true); extern long int __lrintf (float __x) noexcept (true); __extension__ extern long long int llrintf (float __x) noexcept (true); extern long long int __llrintf (float __x) noexcept (true); extern long int lroundf (float __x) noexcept (true); extern long int __lroundf (float __x) noexcept (true); __extension__ extern long long int llroundf (float __x) noexcept (true); extern long long int __llroundf (float __x) noexcept (true); extern float fdimf (float __x, float __y) noexcept (true); extern float __fdimf (float __x, float __y) noexcept (true); extern float fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fmaf (float __x, float __y, float __z) noexcept (true); extern float __fmaf (float __x, float __y, float __z) noexcept (true); extern float roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); extern float fromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern float __fromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern float ufromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern float __ufromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern float fromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern float __fromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern float ufromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern float __ufromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern int canonicalizef (float *__cx, const float *__x) noexcept (true); extern float fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fmaximum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fminimum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern int totalorderf (const float *__x, const float *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermagf (const float *__x, const float *__y) noexcept (true) __attribute__ ((__pure__)); extern float getpayloadf (const float *__x) noexcept (true); extern float __getpayloadf (const float *__x) noexcept (true); extern int setpayloadf (float *__x, float __payload) noexcept (true); extern int setpayloadsigf (float *__x, float __payload) noexcept (true); extern float scalbf (float __x, float __n) noexcept (true); extern float __scalbf (float __x, float __n) noexcept (true); # 468 "/usr/include/math.h" 2 3 4 # 535 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 1 3 4 # 20 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 3 4 extern int __fpclassifyl (long double __value) noexcept (true) __attribute__ ((__const__)); extern int __signbitl (long double __value) noexcept (true) __attribute__ ((__const__)); extern int __isinfl (long double __value) noexcept (true) __attribute__ ((__const__)); extern int __finitel (long double __value) noexcept (true) __attribute__ ((__const__)); extern int __isnanl (long double __value) noexcept (true) __attribute__ ((__const__)); extern int __iseqsigl (long double __x, long double __y) noexcept (true); extern int __issignalingl (long double __value) noexcept (true) __attribute__ ((__const__)); # 536 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern long double acosl (long double __x) noexcept (true); extern long double __acosl (long double __x) noexcept (true); extern long double asinl (long double __x) noexcept (true); extern long double __asinl (long double __x) noexcept (true); extern long double atanl (long double __x) noexcept (true); extern long double __atanl (long double __x) noexcept (true); extern long double atan2l (long double __y, long double __x) noexcept (true); extern long double __atan2l (long double __y, long double __x) noexcept (true); extern long double cosl (long double __x) noexcept (true); extern long double __cosl (long double __x) noexcept (true); extern long double sinl (long double __x) noexcept (true); extern long double __sinl (long double __x) noexcept (true); extern long double tanl (long double __x) noexcept (true); extern long double __tanl (long double __x) noexcept (true); extern long double acospil (long double __x) noexcept (true); extern long double __acospil (long double __x) noexcept (true); extern long double acospil (long double __x) noexcept (true); extern long double __acospil (long double __x) noexcept (true); extern long double asinpil (long double __x) noexcept (true); extern long double __asinpil (long double __x) noexcept (true); extern long double asinpil (long double __x) noexcept (true); extern long double __asinpil (long double __x) noexcept (true); extern long double atanpil (long double __x) noexcept (true); extern long double __atanpil (long double __x) noexcept (true); extern long double atanpil (long double __x) noexcept (true); extern long double __atanpil (long double __x) noexcept (true); extern long double atan2pil (long double __y, long double __x) noexcept (true); extern long double __atan2pil (long double __y, long double __x) noexcept (true); extern long double atan2pil (long double __y, long double __x) noexcept (true); extern long double __atan2pil (long double __y, long double __x) noexcept (true); extern long double cospil (long double __x) noexcept (true); extern long double __cospil (long double __x) noexcept (true); extern long double sinpil (long double __x) noexcept (true); extern long double __sinpil (long double __x) noexcept (true); extern long double tanpil (long double __x) noexcept (true); extern long double __tanpil (long double __x) noexcept (true); extern long double coshl (long double __x) noexcept (true); extern long double __coshl (long double __x) noexcept (true); extern long double sinhl (long double __x) noexcept (true); extern long double __sinhl (long double __x) noexcept (true); extern long double tanhl (long double __x) noexcept (true); extern long double __tanhl (long double __x) noexcept (true); extern void sincosl (long double __x, long double *__sinx, long double *__cosx) noexcept (true); extern void __sincosl (long double __x, long double *__sinx, long double *__cosx) noexcept (true) ; extern long double acoshl (long double __x) noexcept (true); extern long double __acoshl (long double __x) noexcept (true); extern long double asinhl (long double __x) noexcept (true); extern long double __asinhl (long double __x) noexcept (true); extern long double atanhl (long double __x) noexcept (true); extern long double __atanhl (long double __x) noexcept (true); extern long double expl (long double __x) noexcept (true); extern long double __expl (long double __x) noexcept (true); extern long double frexpl (long double __x, int *__exponent) noexcept (true); extern long double __frexpl (long double __x, int *__exponent) noexcept (true); extern long double ldexpl (long double __x, int __exponent) noexcept (true); extern long double __ldexpl (long double __x, int __exponent) noexcept (true); extern long double logl (long double __x) noexcept (true); extern long double __logl (long double __x) noexcept (true); extern long double log10l (long double __x) noexcept (true); extern long double __log10l (long double __x) noexcept (true); extern long double modfl (long double __x, long double *__iptr) noexcept (true); extern long double __modfl (long double __x, long double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern long double exp10l (long double __x) noexcept (true); extern long double __exp10l (long double __x) noexcept (true); extern long double exp2m1l (long double __x) noexcept (true); extern long double __exp2m1l (long double __x) noexcept (true); extern long double exp10m1l (long double __x) noexcept (true); extern long double __exp10m1l (long double __x) noexcept (true); extern long double log2p1l (long double __x) noexcept (true); extern long double __log2p1l (long double __x) noexcept (true); extern long double log10p1l (long double __x) noexcept (true); extern long double __log10p1l (long double __x) noexcept (true); extern long double logp1l (long double __x) noexcept (true); extern long double __logp1l (long double __x) noexcept (true); extern long double expm1l (long double __x) noexcept (true); extern long double __expm1l (long double __x) noexcept (true); extern long double log1pl (long double __x) noexcept (true); extern long double __log1pl (long double __x) noexcept (true); extern long double logbl (long double __x) noexcept (true); extern long double __logbl (long double __x) noexcept (true); extern long double exp2l (long double __x) noexcept (true); extern long double __exp2l (long double __x) noexcept (true); extern long double log2l (long double __x) noexcept (true); extern long double __log2l (long double __x) noexcept (true); extern long double powl (long double __x, long double __y) noexcept (true); extern long double __powl (long double __x, long double __y) noexcept (true); extern long double sqrtl (long double __x) noexcept (true); extern long double __sqrtl (long double __x) noexcept (true); extern long double hypotl (long double __x, long double __y) noexcept (true); extern long double __hypotl (long double __x, long double __y) noexcept (true); extern long double cbrtl (long double __x) noexcept (true); extern long double __cbrtl (long double __x) noexcept (true); extern long double compoundnl (long double __x, long long int __y) noexcept (true); extern long double __compoundnl (long double __x, long long int __y) noexcept (true); extern long double pownl (long double __x, long long int __y) noexcept (true); extern long double __pownl (long double __x, long long int __y) noexcept (true); extern long double powrl (long double __x, long double __y) noexcept (true); extern long double __powrl (long double __x, long double __y) noexcept (true); extern long double rootnl (long double __x, long long int __y) noexcept (true); extern long double __rootnl (long double __x, long long int __y) noexcept (true); extern long double rsqrtl (long double __x) noexcept (true); extern long double __rsqrtl (long double __x) noexcept (true); extern long double ceill (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double floorl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double fmodl (long double __x, long double __y) noexcept (true); extern long double __fmodl (long double __x, long double __y) noexcept (true); # 231 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern int isinfl (long double __value) noexcept (true) __attribute__ ((__const__)); extern int finitel (long double __value) noexcept (true) __attribute__ ((__const__)); extern long double dreml (long double __x, long double __y) noexcept (true); extern long double __dreml (long double __x, long double __y) noexcept (true); extern long double significandl (long double __x) noexcept (true); extern long double __significandl (long double __x) noexcept (true); extern long double copysignl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double nanl (const char *__tagb) noexcept (true); extern long double __nanl (const char *__tagb) noexcept (true); # 267 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern int isnanl (long double __value) noexcept (true) __attribute__ ((__const__)); extern long double j0l (long double) noexcept (true); extern long double __j0l (long double) noexcept (true); extern long double j1l (long double) noexcept (true); extern long double __j1l (long double) noexcept (true); extern long double jnl (int, long double) noexcept (true); extern long double __jnl (int, long double) noexcept (true); extern long double y0l (long double) noexcept (true); extern long double __y0l (long double) noexcept (true); extern long double y1l (long double) noexcept (true); extern long double __y1l (long double) noexcept (true); extern long double ynl (int, long double) noexcept (true); extern long double __ynl (int, long double) noexcept (true); extern long double erfl (long double) noexcept (true); extern long double __erfl (long double) noexcept (true); extern long double erfcl (long double) noexcept (true); extern long double __erfcl (long double) noexcept (true); extern long double lgammal (long double) noexcept (true); extern long double __lgammal (long double) noexcept (true); extern long double tgammal (long double) noexcept (true); extern long double __tgammal (long double) noexcept (true); extern long double gammal (long double) noexcept (true); extern long double __gammal (long double) noexcept (true); extern long double lgammal_r (long double, int *__signgamp) noexcept (true); extern long double __lgammal_r (long double, int *__signgamp) noexcept (true); extern long double rintl (long double __x) noexcept (true); extern long double __rintl (long double __x) noexcept (true); extern long double nextafterl (long double __x, long double __y) noexcept (true); extern long double __nextafterl (long double __x, long double __y) noexcept (true); extern long double nexttowardl (long double __x, long double __y) noexcept (true); extern long double __nexttowardl (long double __x, long double __y) noexcept (true); extern long double nextdownl (long double __x) noexcept (true); extern long double __nextdownl (long double __x) noexcept (true); extern long double nextupl (long double __x) noexcept (true); extern long double __nextupl (long double __x) noexcept (true); extern long double remainderl (long double __x, long double __y) noexcept (true); extern long double __remainderl (long double __x, long double __y) noexcept (true); extern long double scalbnl (long double __x, int __n) noexcept (true); extern long double __scalbnl (long double __x, int __n) noexcept (true); extern int ilogbl (long double __x) noexcept (true); extern int __ilogbl (long double __x) noexcept (true); extern long int llogbl (long double __x) noexcept (true); extern long int __llogbl (long double __x) noexcept (true); extern long double scalblnl (long double __x, long int __n) noexcept (true); extern long double __scalblnl (long double __x, long int __n) noexcept (true); extern long double nearbyintl (long double __x) noexcept (true); extern long double __nearbyintl (long double __x) noexcept (true); extern long double roundl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double truncl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double remquol (long double __x, long double __y, int *__quo) noexcept (true); extern long double __remquol (long double __x, long double __y, int *__quo) noexcept (true); extern long int lrintl (long double __x) noexcept (true); extern long int __lrintl (long double __x) noexcept (true); __extension__ extern long long int llrintl (long double __x) noexcept (true); extern long long int __llrintl (long double __x) noexcept (true); extern long int lroundl (long double __x) noexcept (true); extern long int __lroundl (long double __x) noexcept (true); __extension__ extern long long int llroundl (long double __x) noexcept (true); extern long long int __llroundl (long double __x) noexcept (true); extern long double fdiml (long double __x, long double __y) noexcept (true); extern long double __fdiml (long double __x, long double __y) noexcept (true); extern long double fmaxl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fminl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fmal (long double __x, long double __y, long double __z) noexcept (true); extern long double __fmal (long double __x, long double __y, long double __z) noexcept (true); extern long double roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double fromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern long double __fromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern long double ufromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern long double __ufromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern long double fromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern long double __fromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern long double ufromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern long double __ufromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern int canonicalizel (long double *__cx, const long double *__x) noexcept (true); extern long double fmaxmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fminmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fmaximuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fminimuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fmaximum_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fminimum_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fmaximum_magl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fminimum_magl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fmaximum_mag_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fminimum_mag_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern int totalorderl (const long double *__x, const long double *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermagl (const long double *__x, const long double *__y) noexcept (true) __attribute__ ((__pure__)); extern long double getpayloadl (const long double *__x) noexcept (true); extern long double __getpayloadl (const long double *__x) noexcept (true); extern int setpayloadl (long double *__x, long double __payload) noexcept (true); extern int setpayloadsigl (long double *__x, long double __payload) noexcept (true); extern long double scalbl (long double __x, long double __n) noexcept (true); extern long double __scalbl (long double __x, long double __n) noexcept (true); # 537 "/usr/include/math.h" 2 3 4 # 587 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true); extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true); extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true); extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true); extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true); extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true); extern _Float32 acospif32 (_Float32 __x) noexcept (true); extern _Float32 __acospif32 (_Float32 __x) noexcept (true); extern _Float32 acospif32 (_Float32 __x) noexcept (true); extern _Float32 __acospif32 (_Float32 __x) noexcept (true); extern _Float32 asinpif32 (_Float32 __x) noexcept (true); extern _Float32 __asinpif32 (_Float32 __x) noexcept (true); extern _Float32 asinpif32 (_Float32 __x) noexcept (true); extern _Float32 __asinpif32 (_Float32 __x) noexcept (true); extern _Float32 atanpif32 (_Float32 __x) noexcept (true); extern _Float32 __atanpif32 (_Float32 __x) noexcept (true); extern _Float32 atanpif32 (_Float32 __x) noexcept (true); extern _Float32 __atanpif32 (_Float32 __x) noexcept (true); extern _Float32 atan2pif32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2pif32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 atan2pif32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2pif32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 cospif32 (_Float32 __x) noexcept (true); extern _Float32 __cospif32 (_Float32 __x) noexcept (true); extern _Float32 sinpif32 (_Float32 __x) noexcept (true); extern _Float32 __sinpif32 (_Float32 __x) noexcept (true); extern _Float32 tanpif32 (_Float32 __x) noexcept (true); extern _Float32 __tanpif32 (_Float32 __x) noexcept (true); extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true); extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true); extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true); extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true) ; extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true); extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true); extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true); extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true); extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true); extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true); extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern _Float32 exp10f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10f32 (_Float32 __x) noexcept (true); extern _Float32 exp2m1f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2m1f32 (_Float32 __x) noexcept (true); extern _Float32 exp10m1f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10m1f32 (_Float32 __x) noexcept (true); extern _Float32 log2p1f32 (_Float32 __x) noexcept (true); extern _Float32 __log2p1f32 (_Float32 __x) noexcept (true); extern _Float32 log10p1f32 (_Float32 __x) noexcept (true); extern _Float32 __log10p1f32 (_Float32 __x) noexcept (true); extern _Float32 logp1f32 (_Float32 __x) noexcept (true); extern _Float32 __logp1f32 (_Float32 __x) noexcept (true); extern _Float32 expm1f32 (_Float32 __x) noexcept (true); extern _Float32 __expm1f32 (_Float32 __x) noexcept (true); extern _Float32 log1pf32 (_Float32 __x) noexcept (true); extern _Float32 __log1pf32 (_Float32 __x) noexcept (true); extern _Float32 logbf32 (_Float32 __x) noexcept (true); extern _Float32 __logbf32 (_Float32 __x) noexcept (true); extern _Float32 exp2f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2f32 (_Float32 __x) noexcept (true); extern _Float32 log2f32 (_Float32 __x) noexcept (true); extern _Float32 __log2f32 (_Float32 __x) noexcept (true); extern _Float32 powf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __powf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 sqrtf32 (_Float32 __x) noexcept (true); extern _Float32 __sqrtf32 (_Float32 __x) noexcept (true); extern _Float32 hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 cbrtf32 (_Float32 __x) noexcept (true); extern _Float32 __cbrtf32 (_Float32 __x) noexcept (true); extern _Float32 compoundnf32 (_Float32 __x, long long int __y) noexcept (true); extern _Float32 __compoundnf32 (_Float32 __x, long long int __y) noexcept (true); extern _Float32 pownf32 (_Float32 __x, long long int __y) noexcept (true); extern _Float32 __pownf32 (_Float32 __x, long long int __y) noexcept (true); extern _Float32 powrf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __powrf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 rootnf32 (_Float32 __x, long long int __y) noexcept (true); extern _Float32 __rootnf32 (_Float32 __x, long long int __y) noexcept (true); extern _Float32 rsqrtf32 (_Float32 __x) noexcept (true); extern _Float32 __rsqrtf32 (_Float32 __x) noexcept (true); extern _Float32 ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); # 252 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32 copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 nanf32 (const char *__tagb) noexcept (true); extern _Float32 __nanf32 (const char *__tagb) noexcept (true); # 274 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32 j0f32 (_Float32) noexcept (true); extern _Float32 __j0f32 (_Float32) noexcept (true); extern _Float32 j1f32 (_Float32) noexcept (true); extern _Float32 __j1f32 (_Float32) noexcept (true); extern _Float32 jnf32 (int, _Float32) noexcept (true); extern _Float32 __jnf32 (int, _Float32) noexcept (true); extern _Float32 y0f32 (_Float32) noexcept (true); extern _Float32 __y0f32 (_Float32) noexcept (true); extern _Float32 y1f32 (_Float32) noexcept (true); extern _Float32 __y1f32 (_Float32) noexcept (true); extern _Float32 ynf32 (int, _Float32) noexcept (true); extern _Float32 __ynf32 (int, _Float32) noexcept (true); extern _Float32 erff32 (_Float32) noexcept (true); extern _Float32 __erff32 (_Float32) noexcept (true); extern _Float32 erfcf32 (_Float32) noexcept (true); extern _Float32 __erfcf32 (_Float32) noexcept (true); extern _Float32 lgammaf32 (_Float32) noexcept (true); extern _Float32 __lgammaf32 (_Float32) noexcept (true); extern _Float32 tgammaf32 (_Float32) noexcept (true); extern _Float32 __tgammaf32 (_Float32) noexcept (true); # 306 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32 lgammaf32_r (_Float32, int *__signgamp) noexcept (true); extern _Float32 __lgammaf32_r (_Float32, int *__signgamp) noexcept (true); extern _Float32 rintf32 (_Float32 __x) noexcept (true); extern _Float32 __rintf32 (_Float32 __x) noexcept (true); extern _Float32 nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 nextdownf32 (_Float32 __x) noexcept (true); extern _Float32 __nextdownf32 (_Float32 __x) noexcept (true); extern _Float32 nextupf32 (_Float32 __x) noexcept (true); extern _Float32 __nextupf32 (_Float32 __x) noexcept (true); extern _Float32 remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 scalbnf32 (_Float32 __x, int __n) noexcept (true); extern _Float32 __scalbnf32 (_Float32 __x, int __n) noexcept (true); extern int ilogbf32 (_Float32 __x) noexcept (true); extern int __ilogbf32 (_Float32 __x) noexcept (true); extern long int llogbf32 (_Float32 __x) noexcept (true); extern long int __llogbf32 (_Float32 __x) noexcept (true); extern _Float32 scalblnf32 (_Float32 __x, long int __n) noexcept (true); extern _Float32 __scalblnf32 (_Float32 __x, long int __n) noexcept (true); extern _Float32 nearbyintf32 (_Float32 __x) noexcept (true); extern _Float32 __nearbyintf32 (_Float32 __x) noexcept (true); extern _Float32 roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); extern _Float32 __remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); extern long int lrintf32 (_Float32 __x) noexcept (true); extern long int __lrintf32 (_Float32 __x) noexcept (true); __extension__ extern long long int llrintf32 (_Float32 __x) noexcept (true); extern long long int __llrintf32 (_Float32 __x) noexcept (true); extern long int lroundf32 (_Float32 __x) noexcept (true); extern long int __lroundf32 (_Float32 __x) noexcept (true); __extension__ extern long long int llroundf32 (_Float32 __x) noexcept (true); extern long long int __llroundf32 (_Float32 __x) noexcept (true); extern _Float32 fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); extern _Float32 __fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); extern _Float32 roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 fromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern _Float32 __fromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern _Float32 ufromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern _Float32 __ufromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern _Float32 fromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern _Float32 __fromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern _Float32 ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern _Float32 __ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern int canonicalizef32 (_Float32 *__cx, const _Float32 *__x) noexcept (true); extern _Float32 fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fmaximum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fminimum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern int totalorderf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermagf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) __attribute__ ((__pure__)); extern _Float32 getpayloadf32 (const _Float32 *__x) noexcept (true); extern _Float32 __getpayloadf32 (const _Float32 *__x) noexcept (true); extern int setpayloadf32 (_Float32 *__x, _Float32 __payload) noexcept (true); extern int setpayloadsigf32 (_Float32 *__x, _Float32 __payload) noexcept (true); # 588 "/usr/include/math.h" 2 3 4 # 604 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64 acosf64 (_Float64 __x) noexcept (true); extern _Float64 __acosf64 (_Float64 __x) noexcept (true); extern _Float64 asinf64 (_Float64 __x) noexcept (true); extern _Float64 __asinf64 (_Float64 __x) noexcept (true); extern _Float64 atanf64 (_Float64 __x) noexcept (true); extern _Float64 __atanf64 (_Float64 __x) noexcept (true); extern _Float64 atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 __atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 cosf64 (_Float64 __x) noexcept (true); extern _Float64 __cosf64 (_Float64 __x) noexcept (true); extern _Float64 sinf64 (_Float64 __x) noexcept (true); extern _Float64 __sinf64 (_Float64 __x) noexcept (true); extern _Float64 tanf64 (_Float64 __x) noexcept (true); extern _Float64 __tanf64 (_Float64 __x) noexcept (true); extern _Float64 acospif64 (_Float64 __x) noexcept (true); extern _Float64 __acospif64 (_Float64 __x) noexcept (true); extern _Float64 acospif64 (_Float64 __x) noexcept (true); extern _Float64 __acospif64 (_Float64 __x) noexcept (true); extern _Float64 asinpif64 (_Float64 __x) noexcept (true); extern _Float64 __asinpif64 (_Float64 __x) noexcept (true); extern _Float64 asinpif64 (_Float64 __x) noexcept (true); extern _Float64 __asinpif64 (_Float64 __x) noexcept (true); extern _Float64 atanpif64 (_Float64 __x) noexcept (true); extern _Float64 __atanpif64 (_Float64 __x) noexcept (true); extern _Float64 atanpif64 (_Float64 __x) noexcept (true); extern _Float64 __atanpif64 (_Float64 __x) noexcept (true); extern _Float64 atan2pif64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 __atan2pif64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 atan2pif64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 __atan2pif64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 cospif64 (_Float64 __x) noexcept (true); extern _Float64 __cospif64 (_Float64 __x) noexcept (true); extern _Float64 sinpif64 (_Float64 __x) noexcept (true); extern _Float64 __sinpif64 (_Float64 __x) noexcept (true); extern _Float64 tanpif64 (_Float64 __x) noexcept (true); extern _Float64 __tanpif64 (_Float64 __x) noexcept (true); extern _Float64 coshf64 (_Float64 __x) noexcept (true); extern _Float64 __coshf64 (_Float64 __x) noexcept (true); extern _Float64 sinhf64 (_Float64 __x) noexcept (true); extern _Float64 __sinhf64 (_Float64 __x) noexcept (true); extern _Float64 tanhf64 (_Float64 __x) noexcept (true); extern _Float64 __tanhf64 (_Float64 __x) noexcept (true); extern void sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true); extern void __sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true) ; extern _Float64 acoshf64 (_Float64 __x) noexcept (true); extern _Float64 __acoshf64 (_Float64 __x) noexcept (true); extern _Float64 asinhf64 (_Float64 __x) noexcept (true); extern _Float64 __asinhf64 (_Float64 __x) noexcept (true); extern _Float64 atanhf64 (_Float64 __x) noexcept (true); extern _Float64 __atanhf64 (_Float64 __x) noexcept (true); extern _Float64 expf64 (_Float64 __x) noexcept (true); extern _Float64 __expf64 (_Float64 __x) noexcept (true); extern _Float64 frexpf64 (_Float64 __x, int *__exponent) noexcept (true); extern _Float64 __frexpf64 (_Float64 __x, int *__exponent) noexcept (true); extern _Float64 ldexpf64 (_Float64 __x, int __exponent) noexcept (true); extern _Float64 __ldexpf64 (_Float64 __x, int __exponent) noexcept (true); extern _Float64 logf64 (_Float64 __x) noexcept (true); extern _Float64 __logf64 (_Float64 __x) noexcept (true); extern _Float64 log10f64 (_Float64 __x) noexcept (true); extern _Float64 __log10f64 (_Float64 __x) noexcept (true); extern _Float64 modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true); extern _Float64 __modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern _Float64 exp10f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10f64 (_Float64 __x) noexcept (true); extern _Float64 exp2m1f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2m1f64 (_Float64 __x) noexcept (true); extern _Float64 exp10m1f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10m1f64 (_Float64 __x) noexcept (true); extern _Float64 log2p1f64 (_Float64 __x) noexcept (true); extern _Float64 __log2p1f64 (_Float64 __x) noexcept (true); extern _Float64 log10p1f64 (_Float64 __x) noexcept (true); extern _Float64 __log10p1f64 (_Float64 __x) noexcept (true); extern _Float64 logp1f64 (_Float64 __x) noexcept (true); extern _Float64 __logp1f64 (_Float64 __x) noexcept (true); extern _Float64 expm1f64 (_Float64 __x) noexcept (true); extern _Float64 __expm1f64 (_Float64 __x) noexcept (true); extern _Float64 log1pf64 (_Float64 __x) noexcept (true); extern _Float64 __log1pf64 (_Float64 __x) noexcept (true); extern _Float64 logbf64 (_Float64 __x) noexcept (true); extern _Float64 __logbf64 (_Float64 __x) noexcept (true); extern _Float64 exp2f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2f64 (_Float64 __x) noexcept (true); extern _Float64 log2f64 (_Float64 __x) noexcept (true); extern _Float64 __log2f64 (_Float64 __x) noexcept (true); extern _Float64 powf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __powf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 sqrtf64 (_Float64 __x) noexcept (true); extern _Float64 __sqrtf64 (_Float64 __x) noexcept (true); extern _Float64 hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 cbrtf64 (_Float64 __x) noexcept (true); extern _Float64 __cbrtf64 (_Float64 __x) noexcept (true); extern _Float64 compoundnf64 (_Float64 __x, long long int __y) noexcept (true); extern _Float64 __compoundnf64 (_Float64 __x, long long int __y) noexcept (true); extern _Float64 pownf64 (_Float64 __x, long long int __y) noexcept (true); extern _Float64 __pownf64 (_Float64 __x, long long int __y) noexcept (true); extern _Float64 powrf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __powrf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 rootnf64 (_Float64 __x, long long int __y) noexcept (true); extern _Float64 __rootnf64 (_Float64 __x, long long int __y) noexcept (true); extern _Float64 rsqrtf64 (_Float64 __x) noexcept (true); extern _Float64 __rsqrtf64 (_Float64 __x) noexcept (true); extern _Float64 ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); # 252 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64 copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 nanf64 (const char *__tagb) noexcept (true); extern _Float64 __nanf64 (const char *__tagb) noexcept (true); # 274 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64 j0f64 (_Float64) noexcept (true); extern _Float64 __j0f64 (_Float64) noexcept (true); extern _Float64 j1f64 (_Float64) noexcept (true); extern _Float64 __j1f64 (_Float64) noexcept (true); extern _Float64 jnf64 (int, _Float64) noexcept (true); extern _Float64 __jnf64 (int, _Float64) noexcept (true); extern _Float64 y0f64 (_Float64) noexcept (true); extern _Float64 __y0f64 (_Float64) noexcept (true); extern _Float64 y1f64 (_Float64) noexcept (true); extern _Float64 __y1f64 (_Float64) noexcept (true); extern _Float64 ynf64 (int, _Float64) noexcept (true); extern _Float64 __ynf64 (int, _Float64) noexcept (true); extern _Float64 erff64 (_Float64) noexcept (true); extern _Float64 __erff64 (_Float64) noexcept (true); extern _Float64 erfcf64 (_Float64) noexcept (true); extern _Float64 __erfcf64 (_Float64) noexcept (true); extern _Float64 lgammaf64 (_Float64) noexcept (true); extern _Float64 __lgammaf64 (_Float64) noexcept (true); extern _Float64 tgammaf64 (_Float64) noexcept (true); extern _Float64 __tgammaf64 (_Float64) noexcept (true); # 306 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64 lgammaf64_r (_Float64, int *__signgamp) noexcept (true); extern _Float64 __lgammaf64_r (_Float64, int *__signgamp) noexcept (true); extern _Float64 rintf64 (_Float64 __x) noexcept (true); extern _Float64 __rintf64 (_Float64 __x) noexcept (true); extern _Float64 nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 nextdownf64 (_Float64 __x) noexcept (true); extern _Float64 __nextdownf64 (_Float64 __x) noexcept (true); extern _Float64 nextupf64 (_Float64 __x) noexcept (true); extern _Float64 __nextupf64 (_Float64 __x) noexcept (true); extern _Float64 remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 scalbnf64 (_Float64 __x, int __n) noexcept (true); extern _Float64 __scalbnf64 (_Float64 __x, int __n) noexcept (true); extern int ilogbf64 (_Float64 __x) noexcept (true); extern int __ilogbf64 (_Float64 __x) noexcept (true); extern long int llogbf64 (_Float64 __x) noexcept (true); extern long int __llogbf64 (_Float64 __x) noexcept (true); extern _Float64 scalblnf64 (_Float64 __x, long int __n) noexcept (true); extern _Float64 __scalblnf64 (_Float64 __x, long int __n) noexcept (true); extern _Float64 nearbyintf64 (_Float64 __x) noexcept (true); extern _Float64 __nearbyintf64 (_Float64 __x) noexcept (true); extern _Float64 roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); extern _Float64 __remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); extern long int lrintf64 (_Float64 __x) noexcept (true); extern long int __lrintf64 (_Float64 __x) noexcept (true); __extension__ extern long long int llrintf64 (_Float64 __x) noexcept (true); extern long long int __llrintf64 (_Float64 __x) noexcept (true); extern long int lroundf64 (_Float64 __x) noexcept (true); extern long int __lroundf64 (_Float64 __x) noexcept (true); __extension__ extern long long int llroundf64 (_Float64 __x) noexcept (true); extern long long int __llroundf64 (_Float64 __x) noexcept (true); extern _Float64 fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float64 __fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float64 roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 fromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern _Float64 __fromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern _Float64 ufromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern _Float64 __ufromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern _Float64 fromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern _Float64 __fromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern _Float64 ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern _Float64 __ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern int canonicalizef64 (_Float64 *__cx, const _Float64 *__x) noexcept (true); extern _Float64 fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fmaximum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fminimum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern int totalorderf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermagf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) __attribute__ ((__pure__)); extern _Float64 getpayloadf64 (const _Float64 *__x) noexcept (true); extern _Float64 __getpayloadf64 (const _Float64 *__x) noexcept (true); extern int setpayloadf64 (_Float64 *__x, _Float64 __payload) noexcept (true); extern int setpayloadsigf64 (_Float64 *__x, _Float64 __payload) noexcept (true); # 605 "/usr/include/math.h" 2 3 4 # 618 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 1 3 4 # 20 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 3 4 extern int __fpclassifyf128 (_Float128 __value) noexcept (true) __attribute__ ((__const__)); extern int __signbitf128 (_Float128 __value) noexcept (true) __attribute__ ((__const__)); extern int __isinff128 (_Float128 __value) noexcept (true) __attribute__ ((__const__)); extern int __finitef128 (_Float128 __value) noexcept (true) __attribute__ ((__const__)); extern int __isnanf128 (_Float128 __value) noexcept (true) __attribute__ ((__const__)); extern int __iseqsigf128 (_Float128 __x, _Float128 __y) noexcept (true); extern int __issignalingf128 (_Float128 __value) noexcept (true) __attribute__ ((__const__)); # 619 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float128 acosf128 (_Float128 __x) noexcept (true); extern _Float128 __acosf128 (_Float128 __x) noexcept (true); extern _Float128 asinf128 (_Float128 __x) noexcept (true); extern _Float128 __asinf128 (_Float128 __x) noexcept (true); extern _Float128 atanf128 (_Float128 __x) noexcept (true); extern _Float128 __atanf128 (_Float128 __x) noexcept (true); extern _Float128 atan2f128 (_Float128 __y, _Float128 __x) noexcept (true); extern _Float128 __atan2f128 (_Float128 __y, _Float128 __x) noexcept (true); extern _Float128 cosf128 (_Float128 __x) noexcept (true); extern _Float128 __cosf128 (_Float128 __x) noexcept (true); extern _Float128 sinf128 (_Float128 __x) noexcept (true); extern _Float128 __sinf128 (_Float128 __x) noexcept (true); extern _Float128 tanf128 (_Float128 __x) noexcept (true); extern _Float128 __tanf128 (_Float128 __x) noexcept (true); extern _Float128 acospif128 (_Float128 __x) noexcept (true); extern _Float128 __acospif128 (_Float128 __x) noexcept (true); extern _Float128 acospif128 (_Float128 __x) noexcept (true); extern _Float128 __acospif128 (_Float128 __x) noexcept (true); extern _Float128 asinpif128 (_Float128 __x) noexcept (true); extern _Float128 __asinpif128 (_Float128 __x) noexcept (true); extern _Float128 asinpif128 (_Float128 __x) noexcept (true); extern _Float128 __asinpif128 (_Float128 __x) noexcept (true); extern _Float128 atanpif128 (_Float128 __x) noexcept (true); extern _Float128 __atanpif128 (_Float128 __x) noexcept (true); extern _Float128 atanpif128 (_Float128 __x) noexcept (true); extern _Float128 __atanpif128 (_Float128 __x) noexcept (true); extern _Float128 atan2pif128 (_Float128 __y, _Float128 __x) noexcept (true); extern _Float128 __atan2pif128 (_Float128 __y, _Float128 __x) noexcept (true); extern _Float128 atan2pif128 (_Float128 __y, _Float128 __x) noexcept (true); extern _Float128 __atan2pif128 (_Float128 __y, _Float128 __x) noexcept (true); extern _Float128 cospif128 (_Float128 __x) noexcept (true); extern _Float128 __cospif128 (_Float128 __x) noexcept (true); extern _Float128 sinpif128 (_Float128 __x) noexcept (true); extern _Float128 __sinpif128 (_Float128 __x) noexcept (true); extern _Float128 tanpif128 (_Float128 __x) noexcept (true); extern _Float128 __tanpif128 (_Float128 __x) noexcept (true); extern _Float128 coshf128 (_Float128 __x) noexcept (true); extern _Float128 __coshf128 (_Float128 __x) noexcept (true); extern _Float128 sinhf128 (_Float128 __x) noexcept (true); extern _Float128 __sinhf128 (_Float128 __x) noexcept (true); extern _Float128 tanhf128 (_Float128 __x) noexcept (true); extern _Float128 __tanhf128 (_Float128 __x) noexcept (true); extern void sincosf128 (_Float128 __x, _Float128 *__sinx, _Float128 *__cosx) noexcept (true); extern void __sincosf128 (_Float128 __x, _Float128 *__sinx, _Float128 *__cosx) noexcept (true) ; extern _Float128 acoshf128 (_Float128 __x) noexcept (true); extern _Float128 __acoshf128 (_Float128 __x) noexcept (true); extern _Float128 asinhf128 (_Float128 __x) noexcept (true); extern _Float128 __asinhf128 (_Float128 __x) noexcept (true); extern _Float128 atanhf128 (_Float128 __x) noexcept (true); extern _Float128 __atanhf128 (_Float128 __x) noexcept (true); extern _Float128 expf128 (_Float128 __x) noexcept (true); extern _Float128 __expf128 (_Float128 __x) noexcept (true); extern _Float128 frexpf128 (_Float128 __x, int *__exponent) noexcept (true); extern _Float128 __frexpf128 (_Float128 __x, int *__exponent) noexcept (true); extern _Float128 ldexpf128 (_Float128 __x, int __exponent) noexcept (true); extern _Float128 __ldexpf128 (_Float128 __x, int __exponent) noexcept (true); extern _Float128 logf128 (_Float128 __x) noexcept (true); extern _Float128 __logf128 (_Float128 __x) noexcept (true); extern _Float128 log10f128 (_Float128 __x) noexcept (true); extern _Float128 __log10f128 (_Float128 __x) noexcept (true); extern _Float128 modff128 (_Float128 __x, _Float128 *__iptr) noexcept (true); extern _Float128 __modff128 (_Float128 __x, _Float128 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern _Float128 exp10f128 (_Float128 __x) noexcept (true); extern _Float128 __exp10f128 (_Float128 __x) noexcept (true); extern _Float128 exp2m1f128 (_Float128 __x) noexcept (true); extern _Float128 __exp2m1f128 (_Float128 __x) noexcept (true); extern _Float128 exp10m1f128 (_Float128 __x) noexcept (true); extern _Float128 __exp10m1f128 (_Float128 __x) noexcept (true); extern _Float128 log2p1f128 (_Float128 __x) noexcept (true); extern _Float128 __log2p1f128 (_Float128 __x) noexcept (true); extern _Float128 log10p1f128 (_Float128 __x) noexcept (true); extern _Float128 __log10p1f128 (_Float128 __x) noexcept (true); extern _Float128 logp1f128 (_Float128 __x) noexcept (true); extern _Float128 __logp1f128 (_Float128 __x) noexcept (true); extern _Float128 expm1f128 (_Float128 __x) noexcept (true); extern _Float128 __expm1f128 (_Float128 __x) noexcept (true); extern _Float128 log1pf128 (_Float128 __x) noexcept (true); extern _Float128 __log1pf128 (_Float128 __x) noexcept (true); extern _Float128 logbf128 (_Float128 __x) noexcept (true); extern _Float128 __logbf128 (_Float128 __x) noexcept (true); extern _Float128 exp2f128 (_Float128 __x) noexcept (true); extern _Float128 __exp2f128 (_Float128 __x) noexcept (true); extern _Float128 log2f128 (_Float128 __x) noexcept (true); extern _Float128 __log2f128 (_Float128 __x) noexcept (true); extern _Float128 powf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __powf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 sqrtf128 (_Float128 __x) noexcept (true); extern _Float128 __sqrtf128 (_Float128 __x) noexcept (true); extern _Float128 hypotf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __hypotf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 cbrtf128 (_Float128 __x) noexcept (true); extern _Float128 __cbrtf128 (_Float128 __x) noexcept (true); extern _Float128 compoundnf128 (_Float128 __x, long long int __y) noexcept (true); extern _Float128 __compoundnf128 (_Float128 __x, long long int __y) noexcept (true); extern _Float128 pownf128 (_Float128 __x, long long int __y) noexcept (true); extern _Float128 __pownf128 (_Float128 __x, long long int __y) noexcept (true); extern _Float128 powrf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __powrf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 rootnf128 (_Float128 __x, long long int __y) noexcept (true); extern _Float128 __rootnf128 (_Float128 __x, long long int __y) noexcept (true); extern _Float128 rsqrtf128 (_Float128 __x) noexcept (true); extern _Float128 __rsqrtf128 (_Float128 __x) noexcept (true); extern _Float128 ceilf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 fabsf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 floorf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 fmodf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __fmodf128 (_Float128 __x, _Float128 __y) noexcept (true); # 252 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float128 copysignf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 nanf128 (const char *__tagb) noexcept (true); extern _Float128 __nanf128 (const char *__tagb) noexcept (true); # 274 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float128 j0f128 (_Float128) noexcept (true); extern _Float128 __j0f128 (_Float128) noexcept (true); extern _Float128 j1f128 (_Float128) noexcept (true); extern _Float128 __j1f128 (_Float128) noexcept (true); extern _Float128 jnf128 (int, _Float128) noexcept (true); extern _Float128 __jnf128 (int, _Float128) noexcept (true); extern _Float128 y0f128 (_Float128) noexcept (true); extern _Float128 __y0f128 (_Float128) noexcept (true); extern _Float128 y1f128 (_Float128) noexcept (true); extern _Float128 __y1f128 (_Float128) noexcept (true); extern _Float128 ynf128 (int, _Float128) noexcept (true); extern _Float128 __ynf128 (int, _Float128) noexcept (true); extern _Float128 erff128 (_Float128) noexcept (true); extern _Float128 __erff128 (_Float128) noexcept (true); extern _Float128 erfcf128 (_Float128) noexcept (true); extern _Float128 __erfcf128 (_Float128) noexcept (true); extern _Float128 lgammaf128 (_Float128) noexcept (true); extern _Float128 __lgammaf128 (_Float128) noexcept (true); extern _Float128 tgammaf128 (_Float128) noexcept (true); extern _Float128 __tgammaf128 (_Float128) noexcept (true); # 306 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float128 lgammaf128_r (_Float128, int *__signgamp) noexcept (true); extern _Float128 __lgammaf128_r (_Float128, int *__signgamp) noexcept (true); extern _Float128 rintf128 (_Float128 __x) noexcept (true); extern _Float128 __rintf128 (_Float128 __x) noexcept (true); extern _Float128 nextafterf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __nextafterf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 nextdownf128 (_Float128 __x) noexcept (true); extern _Float128 __nextdownf128 (_Float128 __x) noexcept (true); extern _Float128 nextupf128 (_Float128 __x) noexcept (true); extern _Float128 __nextupf128 (_Float128 __x) noexcept (true); extern _Float128 remainderf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __remainderf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 scalbnf128 (_Float128 __x, int __n) noexcept (true); extern _Float128 __scalbnf128 (_Float128 __x, int __n) noexcept (true); extern int ilogbf128 (_Float128 __x) noexcept (true); extern int __ilogbf128 (_Float128 __x) noexcept (true); extern long int llogbf128 (_Float128 __x) noexcept (true); extern long int __llogbf128 (_Float128 __x) noexcept (true); extern _Float128 scalblnf128 (_Float128 __x, long int __n) noexcept (true); extern _Float128 __scalblnf128 (_Float128 __x, long int __n) noexcept (true); extern _Float128 nearbyintf128 (_Float128 __x) noexcept (true); extern _Float128 __nearbyintf128 (_Float128 __x) noexcept (true); extern _Float128 roundf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 truncf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 remquof128 (_Float128 __x, _Float128 __y, int *__quo) noexcept (true); extern _Float128 __remquof128 (_Float128 __x, _Float128 __y, int *__quo) noexcept (true); extern long int lrintf128 (_Float128 __x) noexcept (true); extern long int __lrintf128 (_Float128 __x) noexcept (true); __extension__ extern long long int llrintf128 (_Float128 __x) noexcept (true); extern long long int __llrintf128 (_Float128 __x) noexcept (true); extern long int lroundf128 (_Float128 __x) noexcept (true); extern long int __lroundf128 (_Float128 __x) noexcept (true); __extension__ extern long long int llroundf128 (_Float128 __x) noexcept (true); extern long long int __llroundf128 (_Float128 __x) noexcept (true); extern _Float128 fdimf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __fdimf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 fmaxf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fminf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); extern _Float128 __fmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); extern _Float128 roundevenf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 fromfpf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern _Float128 __fromfpf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern _Float128 ufromfpf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern _Float128 __ufromfpf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern _Float128 fromfpxf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern _Float128 __fromfpxf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern _Float128 ufromfpxf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern _Float128 __ufromfpxf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern int canonicalizef128 (_Float128 *__cx, const _Float128 *__x) noexcept (true); extern _Float128 fmaxmagf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fminmagf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fmaximumf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fminimumf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fmaximum_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fminimum_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fmaximum_magf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fminimum_magf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fmaximum_mag_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fminimum_mag_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern int totalorderf128 (const _Float128 *__x, const _Float128 *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermagf128 (const _Float128 *__x, const _Float128 *__y) noexcept (true) __attribute__ ((__pure__)); extern _Float128 getpayloadf128 (const _Float128 *__x) noexcept (true); extern _Float128 __getpayloadf128 (const _Float128 *__x) noexcept (true); extern int setpayloadf128 (_Float128 *__x, _Float128 __payload) noexcept (true); extern int setpayloadsigf128 (_Float128 *__x, _Float128 __payload) noexcept (true); # 622 "/usr/include/math.h" 2 3 4 # 638 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32x acosf32x (_Float32x __x) noexcept (true); extern _Float32x __acosf32x (_Float32x __x) noexcept (true); extern _Float32x asinf32x (_Float32x __x) noexcept (true); extern _Float32x __asinf32x (_Float32x __x) noexcept (true); extern _Float32x atanf32x (_Float32x __x) noexcept (true); extern _Float32x __atanf32x (_Float32x __x) noexcept (true); extern _Float32x atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x __atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x cosf32x (_Float32x __x) noexcept (true); extern _Float32x __cosf32x (_Float32x __x) noexcept (true); extern _Float32x sinf32x (_Float32x __x) noexcept (true); extern _Float32x __sinf32x (_Float32x __x) noexcept (true); extern _Float32x tanf32x (_Float32x __x) noexcept (true); extern _Float32x __tanf32x (_Float32x __x) noexcept (true); extern _Float32x acospif32x (_Float32x __x) noexcept (true); extern _Float32x __acospif32x (_Float32x __x) noexcept (true); extern _Float32x acospif32x (_Float32x __x) noexcept (true); extern _Float32x __acospif32x (_Float32x __x) noexcept (true); extern _Float32x asinpif32x (_Float32x __x) noexcept (true); extern _Float32x __asinpif32x (_Float32x __x) noexcept (true); extern _Float32x asinpif32x (_Float32x __x) noexcept (true); extern _Float32x __asinpif32x (_Float32x __x) noexcept (true); extern _Float32x atanpif32x (_Float32x __x) noexcept (true); extern _Float32x __atanpif32x (_Float32x __x) noexcept (true); extern _Float32x atanpif32x (_Float32x __x) noexcept (true); extern _Float32x __atanpif32x (_Float32x __x) noexcept (true); extern _Float32x atan2pif32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x __atan2pif32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x atan2pif32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x __atan2pif32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x cospif32x (_Float32x __x) noexcept (true); extern _Float32x __cospif32x (_Float32x __x) noexcept (true); extern _Float32x sinpif32x (_Float32x __x) noexcept (true); extern _Float32x __sinpif32x (_Float32x __x) noexcept (true); extern _Float32x tanpif32x (_Float32x __x) noexcept (true); extern _Float32x __tanpif32x (_Float32x __x) noexcept (true); extern _Float32x coshf32x (_Float32x __x) noexcept (true); extern _Float32x __coshf32x (_Float32x __x) noexcept (true); extern _Float32x sinhf32x (_Float32x __x) noexcept (true); extern _Float32x __sinhf32x (_Float32x __x) noexcept (true); extern _Float32x tanhf32x (_Float32x __x) noexcept (true); extern _Float32x __tanhf32x (_Float32x __x) noexcept (true); extern void sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true); extern void __sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true) ; extern _Float32x acoshf32x (_Float32x __x) noexcept (true); extern _Float32x __acoshf32x (_Float32x __x) noexcept (true); extern _Float32x asinhf32x (_Float32x __x) noexcept (true); extern _Float32x __asinhf32x (_Float32x __x) noexcept (true); extern _Float32x atanhf32x (_Float32x __x) noexcept (true); extern _Float32x __atanhf32x (_Float32x __x) noexcept (true); extern _Float32x expf32x (_Float32x __x) noexcept (true); extern _Float32x __expf32x (_Float32x __x) noexcept (true); extern _Float32x frexpf32x (_Float32x __x, int *__exponent) noexcept (true); extern _Float32x __frexpf32x (_Float32x __x, int *__exponent) noexcept (true); extern _Float32x ldexpf32x (_Float32x __x, int __exponent) noexcept (true); extern _Float32x __ldexpf32x (_Float32x __x, int __exponent) noexcept (true); extern _Float32x logf32x (_Float32x __x) noexcept (true); extern _Float32x __logf32x (_Float32x __x) noexcept (true); extern _Float32x log10f32x (_Float32x __x) noexcept (true); extern _Float32x __log10f32x (_Float32x __x) noexcept (true); extern _Float32x modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true); extern _Float32x __modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern _Float32x exp10f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10f32x (_Float32x __x) noexcept (true); extern _Float32x exp2m1f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2m1f32x (_Float32x __x) noexcept (true); extern _Float32x exp10m1f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10m1f32x (_Float32x __x) noexcept (true); extern _Float32x log2p1f32x (_Float32x __x) noexcept (true); extern _Float32x __log2p1f32x (_Float32x __x) noexcept (true); extern _Float32x log10p1f32x (_Float32x __x) noexcept (true); extern _Float32x __log10p1f32x (_Float32x __x) noexcept (true); extern _Float32x logp1f32x (_Float32x __x) noexcept (true); extern _Float32x __logp1f32x (_Float32x __x) noexcept (true); extern _Float32x expm1f32x (_Float32x __x) noexcept (true); extern _Float32x __expm1f32x (_Float32x __x) noexcept (true); extern _Float32x log1pf32x (_Float32x __x) noexcept (true); extern _Float32x __log1pf32x (_Float32x __x) noexcept (true); extern _Float32x logbf32x (_Float32x __x) noexcept (true); extern _Float32x __logbf32x (_Float32x __x) noexcept (true); extern _Float32x exp2f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2f32x (_Float32x __x) noexcept (true); extern _Float32x log2f32x (_Float32x __x) noexcept (true); extern _Float32x __log2f32x (_Float32x __x) noexcept (true); extern _Float32x powf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __powf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x sqrtf32x (_Float32x __x) noexcept (true); extern _Float32x __sqrtf32x (_Float32x __x) noexcept (true); extern _Float32x hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x cbrtf32x (_Float32x __x) noexcept (true); extern _Float32x __cbrtf32x (_Float32x __x) noexcept (true); extern _Float32x compoundnf32x (_Float32x __x, long long int __y) noexcept (true); extern _Float32x __compoundnf32x (_Float32x __x, long long int __y) noexcept (true); extern _Float32x pownf32x (_Float32x __x, long long int __y) noexcept (true); extern _Float32x __pownf32x (_Float32x __x, long long int __y) noexcept (true); extern _Float32x powrf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __powrf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x rootnf32x (_Float32x __x, long long int __y) noexcept (true); extern _Float32x __rootnf32x (_Float32x __x, long long int __y) noexcept (true); extern _Float32x rsqrtf32x (_Float32x __x) noexcept (true); extern _Float32x __rsqrtf32x (_Float32x __x) noexcept (true); extern _Float32x ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); # 252 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32x copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x nanf32x (const char *__tagb) noexcept (true); extern _Float32x __nanf32x (const char *__tagb) noexcept (true); # 274 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32x j0f32x (_Float32x) noexcept (true); extern _Float32x __j0f32x (_Float32x) noexcept (true); extern _Float32x j1f32x (_Float32x) noexcept (true); extern _Float32x __j1f32x (_Float32x) noexcept (true); extern _Float32x jnf32x (int, _Float32x) noexcept (true); extern _Float32x __jnf32x (int, _Float32x) noexcept (true); extern _Float32x y0f32x (_Float32x) noexcept (true); extern _Float32x __y0f32x (_Float32x) noexcept (true); extern _Float32x y1f32x (_Float32x) noexcept (true); extern _Float32x __y1f32x (_Float32x) noexcept (true); extern _Float32x ynf32x (int, _Float32x) noexcept (true); extern _Float32x __ynf32x (int, _Float32x) noexcept (true); extern _Float32x erff32x (_Float32x) noexcept (true); extern _Float32x __erff32x (_Float32x) noexcept (true); extern _Float32x erfcf32x (_Float32x) noexcept (true); extern _Float32x __erfcf32x (_Float32x) noexcept (true); extern _Float32x lgammaf32x (_Float32x) noexcept (true); extern _Float32x __lgammaf32x (_Float32x) noexcept (true); extern _Float32x tgammaf32x (_Float32x) noexcept (true); extern _Float32x __tgammaf32x (_Float32x) noexcept (true); # 306 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32x lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); extern _Float32x __lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); extern _Float32x rintf32x (_Float32x __x) noexcept (true); extern _Float32x __rintf32x (_Float32x __x) noexcept (true); extern _Float32x nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x nextdownf32x (_Float32x __x) noexcept (true); extern _Float32x __nextdownf32x (_Float32x __x) noexcept (true); extern _Float32x nextupf32x (_Float32x __x) noexcept (true); extern _Float32x __nextupf32x (_Float32x __x) noexcept (true); extern _Float32x remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x scalbnf32x (_Float32x __x, int __n) noexcept (true); extern _Float32x __scalbnf32x (_Float32x __x, int __n) noexcept (true); extern int ilogbf32x (_Float32x __x) noexcept (true); extern int __ilogbf32x (_Float32x __x) noexcept (true); extern long int llogbf32x (_Float32x __x) noexcept (true); extern long int __llogbf32x (_Float32x __x) noexcept (true); extern _Float32x scalblnf32x (_Float32x __x, long int __n) noexcept (true); extern _Float32x __scalblnf32x (_Float32x __x, long int __n) noexcept (true); extern _Float32x nearbyintf32x (_Float32x __x) noexcept (true); extern _Float32x __nearbyintf32x (_Float32x __x) noexcept (true); extern _Float32x roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); extern _Float32x __remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); extern long int lrintf32x (_Float32x __x) noexcept (true); extern long int __lrintf32x (_Float32x __x) noexcept (true); __extension__ extern long long int llrintf32x (_Float32x __x) noexcept (true); extern long long int __llrintf32x (_Float32x __x) noexcept (true); extern long int lroundf32x (_Float32x __x) noexcept (true); extern long int __lroundf32x (_Float32x __x) noexcept (true); __extension__ extern long long int llroundf32x (_Float32x __x) noexcept (true); extern long long int __llroundf32x (_Float32x __x) noexcept (true); extern _Float32x fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32x __fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32x roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x fromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern _Float32x __fromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern _Float32x ufromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern _Float32x __ufromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern _Float32x fromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern _Float32x __fromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern _Float32x ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern _Float32x __ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern int canonicalizef32x (_Float32x *__cx, const _Float32x *__x) noexcept (true); extern _Float32x fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fmaximum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fminimum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern int totalorderf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermagf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) __attribute__ ((__pure__)); extern _Float32x getpayloadf32x (const _Float32x *__x) noexcept (true); extern _Float32x __getpayloadf32x (const _Float32x *__x) noexcept (true); extern int setpayloadf32x (_Float32x *__x, _Float32x __payload) noexcept (true); extern int setpayloadsigf32x (_Float32x *__x, _Float32x __payload) noexcept (true); # 639 "/usr/include/math.h" 2 3 4 # 655 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64x acosf64x (_Float64x __x) noexcept (true); extern _Float64x __acosf64x (_Float64x __x) noexcept (true); extern _Float64x asinf64x (_Float64x __x) noexcept (true); extern _Float64x __asinf64x (_Float64x __x) noexcept (true); extern _Float64x atanf64x (_Float64x __x) noexcept (true); extern _Float64x __atanf64x (_Float64x __x) noexcept (true); extern _Float64x atan2f64x (_Float64x __y, _Float64x __x) noexcept (true); extern _Float64x __atan2f64x (_Float64x __y, _Float64x __x) noexcept (true); extern _Float64x cosf64x (_Float64x __x) noexcept (true); extern _Float64x __cosf64x (_Float64x __x) noexcept (true); extern _Float64x sinf64x (_Float64x __x) noexcept (true); extern _Float64x __sinf64x (_Float64x __x) noexcept (true); extern _Float64x tanf64x (_Float64x __x) noexcept (true); extern _Float64x __tanf64x (_Float64x __x) noexcept (true); extern _Float64x acospif64x (_Float64x __x) noexcept (true); extern _Float64x __acospif64x (_Float64x __x) noexcept (true); extern _Float64x acospif64x (_Float64x __x) noexcept (true); extern _Float64x __acospif64x (_Float64x __x) noexcept (true); extern _Float64x asinpif64x (_Float64x __x) noexcept (true); extern _Float64x __asinpif64x (_Float64x __x) noexcept (true); extern _Float64x asinpif64x (_Float64x __x) noexcept (true); extern _Float64x __asinpif64x (_Float64x __x) noexcept (true); extern _Float64x atanpif64x (_Float64x __x) noexcept (true); extern _Float64x __atanpif64x (_Float64x __x) noexcept (true); extern _Float64x atanpif64x (_Float64x __x) noexcept (true); extern _Float64x __atanpif64x (_Float64x __x) noexcept (true); extern _Float64x atan2pif64x (_Float64x __y, _Float64x __x) noexcept (true); extern _Float64x __atan2pif64x (_Float64x __y, _Float64x __x) noexcept (true); extern _Float64x atan2pif64x (_Float64x __y, _Float64x __x) noexcept (true); extern _Float64x __atan2pif64x (_Float64x __y, _Float64x __x) noexcept (true); extern _Float64x cospif64x (_Float64x __x) noexcept (true); extern _Float64x __cospif64x (_Float64x __x) noexcept (true); extern _Float64x sinpif64x (_Float64x __x) noexcept (true); extern _Float64x __sinpif64x (_Float64x __x) noexcept (true); extern _Float64x tanpif64x (_Float64x __x) noexcept (true); extern _Float64x __tanpif64x (_Float64x __x) noexcept (true); extern _Float64x coshf64x (_Float64x __x) noexcept (true); extern _Float64x __coshf64x (_Float64x __x) noexcept (true); extern _Float64x sinhf64x (_Float64x __x) noexcept (true); extern _Float64x __sinhf64x (_Float64x __x) noexcept (true); extern _Float64x tanhf64x (_Float64x __x) noexcept (true); extern _Float64x __tanhf64x (_Float64x __x) noexcept (true); extern void sincosf64x (_Float64x __x, _Float64x *__sinx, _Float64x *__cosx) noexcept (true); extern void __sincosf64x (_Float64x __x, _Float64x *__sinx, _Float64x *__cosx) noexcept (true) ; extern _Float64x acoshf64x (_Float64x __x) noexcept (true); extern _Float64x __acoshf64x (_Float64x __x) noexcept (true); extern _Float64x asinhf64x (_Float64x __x) noexcept (true); extern _Float64x __asinhf64x (_Float64x __x) noexcept (true); extern _Float64x atanhf64x (_Float64x __x) noexcept (true); extern _Float64x __atanhf64x (_Float64x __x) noexcept (true); extern _Float64x expf64x (_Float64x __x) noexcept (true); extern _Float64x __expf64x (_Float64x __x) noexcept (true); extern _Float64x frexpf64x (_Float64x __x, int *__exponent) noexcept (true); extern _Float64x __frexpf64x (_Float64x __x, int *__exponent) noexcept (true); extern _Float64x ldexpf64x (_Float64x __x, int __exponent) noexcept (true); extern _Float64x __ldexpf64x (_Float64x __x, int __exponent) noexcept (true); extern _Float64x logf64x (_Float64x __x) noexcept (true); extern _Float64x __logf64x (_Float64x __x) noexcept (true); extern _Float64x log10f64x (_Float64x __x) noexcept (true); extern _Float64x __log10f64x (_Float64x __x) noexcept (true); extern _Float64x modff64x (_Float64x __x, _Float64x *__iptr) noexcept (true); extern _Float64x __modff64x (_Float64x __x, _Float64x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern _Float64x exp10f64x (_Float64x __x) noexcept (true); extern _Float64x __exp10f64x (_Float64x __x) noexcept (true); extern _Float64x exp2m1f64x (_Float64x __x) noexcept (true); extern _Float64x __exp2m1f64x (_Float64x __x) noexcept (true); extern _Float64x exp10m1f64x (_Float64x __x) noexcept (true); extern _Float64x __exp10m1f64x (_Float64x __x) noexcept (true); extern _Float64x log2p1f64x (_Float64x __x) noexcept (true); extern _Float64x __log2p1f64x (_Float64x __x) noexcept (true); extern _Float64x log10p1f64x (_Float64x __x) noexcept (true); extern _Float64x __log10p1f64x (_Float64x __x) noexcept (true); extern _Float64x logp1f64x (_Float64x __x) noexcept (true); extern _Float64x __logp1f64x (_Float64x __x) noexcept (true); extern _Float64x expm1f64x (_Float64x __x) noexcept (true); extern _Float64x __expm1f64x (_Float64x __x) noexcept (true); extern _Float64x log1pf64x (_Float64x __x) noexcept (true); extern _Float64x __log1pf64x (_Float64x __x) noexcept (true); extern _Float64x logbf64x (_Float64x __x) noexcept (true); extern _Float64x __logbf64x (_Float64x __x) noexcept (true); extern _Float64x exp2f64x (_Float64x __x) noexcept (true); extern _Float64x __exp2f64x (_Float64x __x) noexcept (true); extern _Float64x log2f64x (_Float64x __x) noexcept (true); extern _Float64x __log2f64x (_Float64x __x) noexcept (true); extern _Float64x powf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __powf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x sqrtf64x (_Float64x __x) noexcept (true); extern _Float64x __sqrtf64x (_Float64x __x) noexcept (true); extern _Float64x hypotf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __hypotf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x cbrtf64x (_Float64x __x) noexcept (true); extern _Float64x __cbrtf64x (_Float64x __x) noexcept (true); extern _Float64x compoundnf64x (_Float64x __x, long long int __y) noexcept (true); extern _Float64x __compoundnf64x (_Float64x __x, long long int __y) noexcept (true); extern _Float64x pownf64x (_Float64x __x, long long int __y) noexcept (true); extern _Float64x __pownf64x (_Float64x __x, long long int __y) noexcept (true); extern _Float64x powrf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __powrf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x rootnf64x (_Float64x __x, long long int __y) noexcept (true); extern _Float64x __rootnf64x (_Float64x __x, long long int __y) noexcept (true); extern _Float64x rsqrtf64x (_Float64x __x) noexcept (true); extern _Float64x __rsqrtf64x (_Float64x __x) noexcept (true); extern _Float64x ceilf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x fabsf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x floorf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x fmodf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __fmodf64x (_Float64x __x, _Float64x __y) noexcept (true); # 252 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64x copysignf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x nanf64x (const char *__tagb) noexcept (true); extern _Float64x __nanf64x (const char *__tagb) noexcept (true); # 274 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64x j0f64x (_Float64x) noexcept (true); extern _Float64x __j0f64x (_Float64x) noexcept (true); extern _Float64x j1f64x (_Float64x) noexcept (true); extern _Float64x __j1f64x (_Float64x) noexcept (true); extern _Float64x jnf64x (int, _Float64x) noexcept (true); extern _Float64x __jnf64x (int, _Float64x) noexcept (true); extern _Float64x y0f64x (_Float64x) noexcept (true); extern _Float64x __y0f64x (_Float64x) noexcept (true); extern _Float64x y1f64x (_Float64x) noexcept (true); extern _Float64x __y1f64x (_Float64x) noexcept (true); extern _Float64x ynf64x (int, _Float64x) noexcept (true); extern _Float64x __ynf64x (int, _Float64x) noexcept (true); extern _Float64x erff64x (_Float64x) noexcept (true); extern _Float64x __erff64x (_Float64x) noexcept (true); extern _Float64x erfcf64x (_Float64x) noexcept (true); extern _Float64x __erfcf64x (_Float64x) noexcept (true); extern _Float64x lgammaf64x (_Float64x) noexcept (true); extern _Float64x __lgammaf64x (_Float64x) noexcept (true); extern _Float64x tgammaf64x (_Float64x) noexcept (true); extern _Float64x __tgammaf64x (_Float64x) noexcept (true); # 306 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64x lgammaf64x_r (_Float64x, int *__signgamp) noexcept (true); extern _Float64x __lgammaf64x_r (_Float64x, int *__signgamp) noexcept (true); extern _Float64x rintf64x (_Float64x __x) noexcept (true); extern _Float64x __rintf64x (_Float64x __x) noexcept (true); extern _Float64x nextafterf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __nextafterf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x nextdownf64x (_Float64x __x) noexcept (true); extern _Float64x __nextdownf64x (_Float64x __x) noexcept (true); extern _Float64x nextupf64x (_Float64x __x) noexcept (true); extern _Float64x __nextupf64x (_Float64x __x) noexcept (true); extern _Float64x remainderf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __remainderf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x scalbnf64x (_Float64x __x, int __n) noexcept (true); extern _Float64x __scalbnf64x (_Float64x __x, int __n) noexcept (true); extern int ilogbf64x (_Float64x __x) noexcept (true); extern int __ilogbf64x (_Float64x __x) noexcept (true); extern long int llogbf64x (_Float64x __x) noexcept (true); extern long int __llogbf64x (_Float64x __x) noexcept (true); extern _Float64x scalblnf64x (_Float64x __x, long int __n) noexcept (true); extern _Float64x __scalblnf64x (_Float64x __x, long int __n) noexcept (true); extern _Float64x nearbyintf64x (_Float64x __x) noexcept (true); extern _Float64x __nearbyintf64x (_Float64x __x) noexcept (true); extern _Float64x roundf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x truncf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x remquof64x (_Float64x __x, _Float64x __y, int *__quo) noexcept (true); extern _Float64x __remquof64x (_Float64x __x, _Float64x __y, int *__quo) noexcept (true); extern long int lrintf64x (_Float64x __x) noexcept (true); extern long int __lrintf64x (_Float64x __x) noexcept (true); __extension__ extern long long int llrintf64x (_Float64x __x) noexcept (true); extern long long int __llrintf64x (_Float64x __x) noexcept (true); extern long int lroundf64x (_Float64x __x) noexcept (true); extern long int __lroundf64x (_Float64x __x) noexcept (true); __extension__ extern long long int llroundf64x (_Float64x __x) noexcept (true); extern long long int __llroundf64x (_Float64x __x) noexcept (true); extern _Float64x fdimf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __fdimf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x fmaxf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fminf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) noexcept (true); extern _Float64x __fmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) noexcept (true); extern _Float64x roundevenf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x fromfpf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern _Float64x __fromfpf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern _Float64x ufromfpf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern _Float64x __ufromfpf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern _Float64x fromfpxf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern _Float64x __fromfpxf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern _Float64x ufromfpxf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern _Float64x __ufromfpxf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern int canonicalizef64x (_Float64x *__cx, const _Float64x *__x) noexcept (true); extern _Float64x fmaxmagf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fminmagf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fmaximumf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fminimumf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fmaximum_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fminimum_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fmaximum_magf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fminimum_magf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fmaximum_mag_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fminimum_mag_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern int totalorderf64x (const _Float64x *__x, const _Float64x *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermagf64x (const _Float64x *__x, const _Float64x *__y) noexcept (true) __attribute__ ((__pure__)); extern _Float64x getpayloadf64x (const _Float64x *__x) noexcept (true); extern _Float64x __getpayloadf64x (const _Float64x *__x) noexcept (true); extern int setpayloadf64x (_Float64x *__x, _Float64x __payload) noexcept (true); extern int setpayloadsigf64x (_Float64x *__x, _Float64x __payload) noexcept (true); # 656 "/usr/include/math.h" 2 3 4 # 703 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern float fadd (double __x, double __y) noexcept (true); extern float fdiv (double __x, double __y) noexcept (true); extern float ffma (double __x, double __y, double __z) noexcept (true); extern float fmul (double __x, double __y) noexcept (true); extern float fsqrt (double __x) noexcept (true); extern float fsub (double __x, double __y) noexcept (true); # 704 "/usr/include/math.h" 2 3 4 # 724 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern float faddl (long double __x, long double __y) noexcept (true); extern float fdivl (long double __x, long double __y) noexcept (true); extern float ffmal (long double __x, long double __y, long double __z) noexcept (true); extern float fmull (long double __x, long double __y) noexcept (true); extern float fsqrtl (long double __x) noexcept (true); extern float fsubl (long double __x, long double __y) noexcept (true); # 725 "/usr/include/math.h" 2 3 4 # 753 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern double daddl (long double __x, long double __y) noexcept (true); extern double ddivl (long double __x, long double __y) noexcept (true); extern double dfmal (long double __x, long double __y, long double __z) noexcept (true); extern double dmull (long double __x, long double __y) noexcept (true); extern double dsqrtl (long double __x) noexcept (true); extern double dsubl (long double __x, long double __y) noexcept (true); # 754 "/usr/include/math.h" 2 3 4 # 834 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float32 f32addf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32 f32divf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32 f32fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32 f32mulf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32 f32sqrtf32x (_Float32x __x) noexcept (true); extern _Float32 f32subf32x (_Float32x __x, _Float32x __y) noexcept (true); # 835 "/usr/include/math.h" 2 3 4 # 844 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float32 f32addf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float32 f32divf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float32 f32fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float32 f32mulf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float32 f32sqrtf64 (_Float64 __x) noexcept (true); extern _Float32 f32subf64 (_Float64 __x, _Float64 __y) noexcept (true); # 845 "/usr/include/math.h" 2 3 4 # 854 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float32 f32addf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float32 f32divf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float32 f32fmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) noexcept (true); extern _Float32 f32mulf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float32 f32sqrtf64x (_Float64x __x) noexcept (true); extern _Float32 f32subf64x (_Float64x __x, _Float64x __y) noexcept (true); # 855 "/usr/include/math.h" 2 3 4 # 864 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float32 f32addf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float32 f32divf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float32 f32fmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); extern _Float32 f32mulf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float32 f32sqrtf128 (_Float128 __x) noexcept (true); extern _Float32 f32subf128 (_Float128 __x, _Float128 __y) noexcept (true); # 865 "/usr/include/math.h" 2 3 4 # 884 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float32x f32xaddf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float32x f32xdivf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float32x f32xfmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float32x f32xmulf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float32x f32xsqrtf64 (_Float64 __x) noexcept (true); extern _Float32x f32xsubf64 (_Float64 __x, _Float64 __y) noexcept (true); # 885 "/usr/include/math.h" 2 3 4 # 894 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float32x f32xaddf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float32x f32xdivf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float32x f32xfmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) noexcept (true); extern _Float32x f32xmulf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float32x f32xsqrtf64x (_Float64x __x) noexcept (true); extern _Float32x f32xsubf64x (_Float64x __x, _Float64x __y) noexcept (true); # 895 "/usr/include/math.h" 2 3 4 # 904 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float32x f32xaddf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float32x f32xdivf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float32x f32xfmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); extern _Float32x f32xmulf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float32x f32xsqrtf128 (_Float128 __x) noexcept (true); extern _Float32x f32xsubf128 (_Float128 __x, _Float128 __y) noexcept (true); # 905 "/usr/include/math.h" 2 3 4 # 924 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float64 f64addf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64 f64divf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64 f64fmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) noexcept (true); extern _Float64 f64mulf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64 f64sqrtf64x (_Float64x __x) noexcept (true); extern _Float64 f64subf64x (_Float64x __x, _Float64x __y) noexcept (true); # 925 "/usr/include/math.h" 2 3 4 # 934 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float64 f64addf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float64 f64divf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float64 f64fmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); extern _Float64 f64mulf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float64 f64sqrtf128 (_Float128 __x) noexcept (true); extern _Float64 f64subf128 (_Float128 __x, _Float128 __y) noexcept (true); # 935 "/usr/include/math.h" 2 3 4 # 954 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float64x f64xaddf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float64x f64xdivf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float64x f64xfmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); extern _Float64x f64xmulf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float64x f64xsqrtf128 (_Float128 __x) noexcept (true); extern _Float64x f64xsubf128 (_Float128 __x, _Float128 __y) noexcept (true); # 955 "/usr/include/math.h" 2 3 4 # 991 "/usr/include/math.h" 3 4 extern int signgam; # 1071 "/usr/include/math.h" 3 4 enum { FP_NAN = 0, FP_INFINITE = 1, FP_ZERO = 2, FP_SUBNORMAL = 3, FP_NORMAL = 4 }; # 1192 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/iscanonical.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/iscanonical.h" 3 4 extern int __iscanonicall (long double __x) noexcept (true) __attribute__ ((__const__)); # 46 "/usr/include/x86_64-linux-gnu/bits/iscanonical.h" 3 4 extern "C++" { inline int iscanonical (float __val) { return ((void) (__typeof (__val)) (__val), 1); } inline int iscanonical (double __val) { return ((void) (__typeof (__val)) (__val), 1); } inline int iscanonical (long double __val) { return __iscanonicall (__val); } inline int iscanonical (_Float128 __val) { return ((void) (__typeof (__val)) (__val), 1); } } # 1193 "/usr/include/math.h" 2 3 4 # 1204 "/usr/include/math.h" 3 4 extern "C++" { inline int issignaling (float __val) { return __issignalingf (__val); } inline int issignaling (double __val) { return __issignaling (__val); } inline int issignaling (long double __val) { return __issignalingl (__val); } inline int issignaling (_Float128 __val) { return __issignalingf128 (__val); } } # 1235 "/usr/include/math.h" 3 4 extern "C++" { # 1266 "/usr/include/math.h" 3 4 template inline bool iszero (__T __val) { return __val == 0; } } # 1501 "/usr/include/math.h" 3 4 extern "C++" { template struct __iseqsig_type; template<> struct __iseqsig_type { static int __call (float __x, float __y) throw () { return __iseqsigf (__x, __y); } }; template<> struct __iseqsig_type { static int __call (double __x, double __y) throw () { return __iseqsig (__x, __y); } }; template<> struct __iseqsig_type { static int __call (long double __x, long double __y) throw () { return __iseqsigl (__x, __y); } }; template<> struct __iseqsig_type<_Float32> { static int __call (_Float32 __x, _Float32 __y) throw () { return __iseqsigf (__x, __y); } }; template<> struct __iseqsig_type<_Float64> { static int __call (_Float64 __x, _Float64 __y) throw () { return __iseqsig (__x, __y); } }; template<> struct __iseqsig_type<_Float128> { static int __call (_Float128 __x, _Float128 __y) throw () { return __iseqsigf128 (__x, __y); } }; template<> struct __iseqsig_type<_Float32x> { static int __call (_Float32x __x, _Float32x __y) throw () { return __iseqsig (__x, __y); } }; template<> struct __iseqsig_type<_Float64x> { static int __call (_Float64x __x, _Float64x __y) throw () { return __iseqsigl (__x, __y); } }; template inline int iseqsig (_T1 __x, _T2 __y) throw () { typedef decltype (((__x) + (__y) + 0.0f)) _T3; return __iseqsig_type<_T3>::__call (__x, __y); } } } # 56 "/usr/include/c++/15/cmath" 2 3 # 57 "/usr/include/c++/15/cmath" 3 #pragma GCC diagnostic pop # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 64 "/usr/include/c++/15/cmath" 2 3 # 90 "/usr/include/c++/15/cmath" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { using ::acos; inline constexpr float acos(float __x) { return __builtin_acosf(__x); } inline constexpr long double acos(long double __x) { return __builtin_acosl(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type acos(_Tp __x) { return __builtin_acos(__x); } using ::asin; inline constexpr float asin(float __x) { return __builtin_asinf(__x); } inline constexpr long double asin(long double __x) { return __builtin_asinl(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type asin(_Tp __x) { return __builtin_asin(__x); } using ::atan; inline constexpr float atan(float __x) { return __builtin_atanf(__x); } inline constexpr long double atan(long double __x) { return __builtin_atanl(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type atan(_Tp __x) { return __builtin_atan(__x); } using ::atan2; inline constexpr float atan2(float __y, float __x) { return __builtin_atan2f(__y, __x); } inline constexpr long double atan2(long double __y, long double __x) { return __builtin_atan2l(__y, __x); } using ::ceil; inline constexpr float ceil(float __x) { return __builtin_ceilf(__x); } inline constexpr long double ceil(long double __x) { return __builtin_ceill(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type ceil(_Tp __x) { return __builtin_ceil(__x); } using ::cos; inline constexpr float cos(float __x) { return __builtin_cosf(__x); } inline constexpr long double cos(long double __x) { return __builtin_cosl(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type cos(_Tp __x) { return __builtin_cos(__x); } using ::cosh; inline constexpr float cosh(float __x) { return __builtin_coshf(__x); } inline constexpr long double cosh(long double __x) { return __builtin_coshl(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type cosh(_Tp __x) { return __builtin_cosh(__x); } using ::exp; inline constexpr float exp(float __x) { return __builtin_expf(__x); } inline constexpr long double exp(long double __x) { return __builtin_expl(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type exp(_Tp __x) { return __builtin_exp(__x); } using ::fabs; inline constexpr float fabs(float __x) { return __builtin_fabsf(__x); } inline constexpr long double fabs(long double __x) { return __builtin_fabsl(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type fabs(_Tp __x) { return __builtin_fabs(__x); } using ::floor; inline constexpr float floor(float __x) { return __builtin_floorf(__x); } inline constexpr long double floor(long double __x) { return __builtin_floorl(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type floor(_Tp __x) { return __builtin_floor(__x); } using ::fmod; inline constexpr float fmod(float __x, float __y) { return __builtin_fmodf(__x, __y); } inline constexpr long double fmod(long double __x, long double __y) { return __builtin_fmodl(__x, __y); } using ::frexp; inline float frexp(float __x, int* __exp) { return __builtin_frexpf(__x, __exp); } inline long double frexp(long double __x, int* __exp) { return __builtin_frexpl(__x, __exp); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type frexp(_Tp __x, int* __exp) { return __builtin_frexp(__x, __exp); } using ::ldexp; inline constexpr float ldexp(float __x, int __exp) { return __builtin_ldexpf(__x, __exp); } inline constexpr long double ldexp(long double __x, int __exp) { return __builtin_ldexpl(__x, __exp); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type ldexp(_Tp __x, int __exp) { return __builtin_ldexp(__x, __exp); } using ::log; inline constexpr float log(float __x) { return __builtin_logf(__x); } inline constexpr long double log(long double __x) { return __builtin_logl(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type log(_Tp __x) { return __builtin_log(__x); } using ::log10; inline constexpr float log10(float __x) { return __builtin_log10f(__x); } inline constexpr long double log10(long double __x) { return __builtin_log10l(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type log10(_Tp __x) { return __builtin_log10(__x); } using ::modf; inline float modf(float __x, float* __iptr) { return __builtin_modff(__x, __iptr); } inline long double modf(long double __x, long double* __iptr) { return __builtin_modfl(__x, __iptr); } using ::pow; inline constexpr float pow(float __x, float __y) { return __builtin_powf(__x, __y); } inline constexpr long double pow(long double __x, long double __y) { return __builtin_powl(__x, __y); } # 407 "/usr/include/c++/15/cmath" 3 using ::sin; inline constexpr float sin(float __x) { return __builtin_sinf(__x); } inline constexpr long double sin(long double __x) { return __builtin_sinl(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type sin(_Tp __x) { return __builtin_sin(__x); } using ::sinh; inline constexpr float sinh(float __x) { return __builtin_sinhf(__x); } inline constexpr long double sinh(long double __x) { return __builtin_sinhl(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type sinh(_Tp __x) { return __builtin_sinh(__x); } using ::sqrt; inline constexpr float sqrt(float __x) { return __builtin_sqrtf(__x); } inline constexpr long double sqrt(long double __x) { return __builtin_sqrtl(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type sqrt(_Tp __x) { return __builtin_sqrt(__x); } using ::tan; inline constexpr float tan(float __x) { return __builtin_tanf(__x); } inline constexpr long double tan(long double __x) { return __builtin_tanl(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type tan(_Tp __x) { return __builtin_tan(__x); } using ::tanh; inline constexpr float tanh(float __x) { return __builtin_tanhf(__x); } inline constexpr long double tanh(long double __x) { return __builtin_tanhl(__x); } template inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type tanh(_Tp __x) { return __builtin_tanh(__x); } constexpr _Float16 acos(_Float16 __x) { return _Float16(__builtin_acosf(__x)); } constexpr _Float16 asin(_Float16 __x) { return _Float16(__builtin_asinf(__x)); } constexpr _Float16 atan(_Float16 __x) { return _Float16(__builtin_atanf(__x)); } constexpr _Float16 atan2(_Float16 __y, _Float16 __x) { return _Float16(__builtin_atan2f(__y, __x)); } constexpr _Float16 ceil(_Float16 __x) { return _Float16(__builtin_ceilf(__x)); } constexpr _Float16 cos(_Float16 __x) { return _Float16(__builtin_cosf(__x)); } constexpr _Float16 cosh(_Float16 __x) { return _Float16(__builtin_coshf(__x)); } constexpr _Float16 exp(_Float16 __x) { return _Float16(__builtin_expf(__x)); } constexpr _Float16 fabs(_Float16 __x) { return _Float16(__builtin_fabsf(__x)); } constexpr _Float16 floor(_Float16 __x) { return _Float16(__builtin_floorf(__x)); } constexpr _Float16 fmod(_Float16 __x, _Float16 __y) { return _Float16(__builtin_fmodf(__x, __y)); } inline _Float16 frexp(_Float16 __x, int* __exp) { return _Float16(__builtin_frexpf(__x, __exp)); } constexpr _Float16 ldexp(_Float16 __x, int __exp) { return _Float16(__builtin_ldexpf(__x, __exp)); } constexpr _Float16 log(_Float16 __x) { return _Float16(__builtin_logf(__x)); } constexpr _Float16 log10(_Float16 __x) { return _Float16(__builtin_log10f(__x)); } inline _Float16 modf(_Float16 __x, _Float16* __iptr) { float __i, __ret = __builtin_modff(__x, &__i); *__iptr = _Float16(__i); return _Float16(__ret); } constexpr _Float16 pow(_Float16 __x, _Float16 __y) { return _Float16(__builtin_powf(__x, __y)); } constexpr _Float16 sin(_Float16 __x) { return _Float16(__builtin_sinf(__x)); } constexpr _Float16 sinh(_Float16 __x) { return _Float16(__builtin_sinhf(__x)); } constexpr _Float16 sqrt(_Float16 __x) { return _Float16(__builtin_sqrtf(__x)); } constexpr _Float16 tan(_Float16 __x) { return _Float16(__builtin_tanf(__x)); } constexpr _Float16 tanh(_Float16 __x) { return _Float16(__builtin_tanhf(__x)); } constexpr _Float32 acos(_Float32 __x) { return __builtin_acosf(__x); } constexpr _Float32 asin(_Float32 __x) { return __builtin_asinf(__x); } constexpr _Float32 atan(_Float32 __x) { return __builtin_atanf(__x); } constexpr _Float32 atan2(_Float32 __y, _Float32 __x) { return __builtin_atan2f(__y, __x); } constexpr _Float32 ceil(_Float32 __x) { return __builtin_ceilf(__x); } constexpr _Float32 cos(_Float32 __x) { return __builtin_cosf(__x); } constexpr _Float32 cosh(_Float32 __x) { return __builtin_coshf(__x); } constexpr _Float32 exp(_Float32 __x) { return __builtin_expf(__x); } constexpr _Float32 fabs(_Float32 __x) { return __builtin_fabsf(__x); } constexpr _Float32 floor(_Float32 __x) { return __builtin_floorf(__x); } constexpr _Float32 fmod(_Float32 __x, _Float32 __y) { return __builtin_fmodf(__x, __y); } inline _Float32 frexp(_Float32 __x, int* __exp) { return __builtin_frexpf(__x, __exp); } constexpr _Float32 ldexp(_Float32 __x, int __exp) { return __builtin_ldexpf(__x, __exp); } constexpr _Float32 log(_Float32 __x) { return __builtin_logf(__x); } constexpr _Float32 log10(_Float32 __x) { return __builtin_log10f(__x); } inline _Float32 modf(_Float32 __x, _Float32* __iptr) { float __i, __ret = __builtin_modff(__x, &__i); *__iptr = __i; return __ret; } constexpr _Float32 pow(_Float32 __x, _Float32 __y) { return __builtin_powf(__x, __y); } constexpr _Float32 sin(_Float32 __x) { return __builtin_sinf(__x); } constexpr _Float32 sinh(_Float32 __x) { return __builtin_sinhf(__x); } constexpr _Float32 sqrt(_Float32 __x) { return __builtin_sqrtf(__x); } constexpr _Float32 tan(_Float32 __x) { return __builtin_tanf(__x); } constexpr _Float32 tanh(_Float32 __x) { return __builtin_tanhf(__x); } constexpr _Float64 acos(_Float64 __x) { return __builtin_acos(__x); } constexpr _Float64 asin(_Float64 __x) { return __builtin_asin(__x); } constexpr _Float64 atan(_Float64 __x) { return __builtin_atan(__x); } constexpr _Float64 atan2(_Float64 __y, _Float64 __x) { return __builtin_atan2(__y, __x); } constexpr _Float64 ceil(_Float64 __x) { return __builtin_ceil(__x); } constexpr _Float64 cos(_Float64 __x) { return __builtin_cos(__x); } constexpr _Float64 cosh(_Float64 __x) { return __builtin_cosh(__x); } constexpr _Float64 exp(_Float64 __x) { return __builtin_exp(__x); } constexpr _Float64 fabs(_Float64 __x) { return __builtin_fabs(__x); } constexpr _Float64 floor(_Float64 __x) { return __builtin_floor(__x); } constexpr _Float64 fmod(_Float64 __x, _Float64 __y) { return __builtin_fmod(__x, __y); } inline _Float64 frexp(_Float64 __x, int* __exp) { return __builtin_frexp(__x, __exp); } constexpr _Float64 ldexp(_Float64 __x, int __exp) { return __builtin_ldexp(__x, __exp); } constexpr _Float64 log(_Float64 __x) { return __builtin_log(__x); } constexpr _Float64 log10(_Float64 __x) { return __builtin_log10(__x); } inline _Float64 modf(_Float64 __x, _Float64* __iptr) { double __i, __ret = __builtin_modf(__x, &__i); *__iptr = __i; return __ret; } constexpr _Float64 pow(_Float64 __x, _Float64 __y) { return __builtin_pow(__x, __y); } constexpr _Float64 sin(_Float64 __x) { return __builtin_sin(__x); } constexpr _Float64 sinh(_Float64 __x) { return __builtin_sinh(__x); } constexpr _Float64 sqrt(_Float64 __x) { return __builtin_sqrt(__x); } constexpr _Float64 tan(_Float64 __x) { return __builtin_tan(__x); } constexpr _Float64 tanh(_Float64 __x) { return __builtin_tanh(__x); } # 877 "/usr/include/c++/15/cmath" 3 constexpr _Float128 acos(_Float128 __x) { return __builtin_acosf128(__x); } constexpr _Float128 asin(_Float128 __x) { return __builtin_asinf128(__x); } constexpr _Float128 atan(_Float128 __x) { return __builtin_atanf128(__x); } constexpr _Float128 atan2(_Float128 __y, _Float128 __x) { return __builtin_atan2f128(__y, __x); } constexpr _Float128 ceil(_Float128 __x) { return __builtin_ceilf128(__x); } constexpr _Float128 cos(_Float128 __x) { return __builtin_cosf128(__x); } constexpr _Float128 cosh(_Float128 __x) { return __builtin_coshf128(__x); } constexpr _Float128 exp(_Float128 __x) { return __builtin_expf128(__x); } constexpr _Float128 fabs(_Float128 __x) { return __builtin_fabsf128(__x); } constexpr _Float128 floor(_Float128 __x) { return __builtin_floorf128(__x); } constexpr _Float128 fmod(_Float128 __x, _Float128 __y) { return __builtin_fmodf128(__x, __y); } inline _Float128 frexp(_Float128 __x, int* __exp) { return __builtin_frexpf128(__x, __exp); } constexpr _Float128 ldexp(_Float128 __x, int __exp) { return __builtin_ldexpf128(__x, __exp); } constexpr _Float128 log(_Float128 __x) { return __builtin_logf128(__x); } constexpr _Float128 log10(_Float128 __x) { return __builtin_log10f128(__x); } inline _Float128 modf(_Float128 __x, _Float128* __iptr) { return __builtin_modff128(__x, __iptr); } constexpr _Float128 pow(_Float128 __x, _Float128 __y) { return __builtin_powf128(__x, __y); } constexpr _Float128 sin(_Float128 __x) { return __builtin_sinf128(__x); } constexpr _Float128 sinh(_Float128 __x) { return __builtin_sinhf128(__x); } constexpr _Float128 sqrt(_Float128 __x) { return __builtin_sqrtf128(__x); } constexpr _Float128 tan(_Float128 __x) { return __builtin_tanf128(__x); } constexpr _Float128 tanh(_Float128 __x) { return __builtin_tanhf128(__x); } constexpr __gnu_cxx::__bfloat16_t acos(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_acosf(__x)); } constexpr __gnu_cxx::__bfloat16_t asin(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_asinf(__x)); } constexpr __gnu_cxx::__bfloat16_t atan(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_atanf(__x)); } constexpr __gnu_cxx::__bfloat16_t atan2(__gnu_cxx::__bfloat16_t __y, __gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_atan2f(__y, __x)); } constexpr __gnu_cxx::__bfloat16_t ceil(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_ceilf(__x)); } constexpr __gnu_cxx::__bfloat16_t cos(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_cosf(__x)); } constexpr __gnu_cxx::__bfloat16_t cosh(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_coshf(__x)); } constexpr __gnu_cxx::__bfloat16_t exp(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_expf(__x)); } constexpr __gnu_cxx::__bfloat16_t fabs(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_fabsf(__x)); } constexpr __gnu_cxx::__bfloat16_t floor(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_floorf(__x)); } constexpr __gnu_cxx::__bfloat16_t fmod(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y) { return __gnu_cxx::__bfloat16_t(__builtin_fmodf(__x, __y)); } inline __gnu_cxx::__bfloat16_t frexp(__gnu_cxx::__bfloat16_t __x, int* __exp) { return __gnu_cxx::__bfloat16_t(__builtin_frexpf(__x, __exp)); } constexpr __gnu_cxx::__bfloat16_t ldexp(__gnu_cxx::__bfloat16_t __x, int __exp) { return __gnu_cxx::__bfloat16_t(__builtin_ldexpf(__x, __exp)); } constexpr __gnu_cxx::__bfloat16_t log(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_logf(__x)); } constexpr __gnu_cxx::__bfloat16_t log10(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_log10f(__x)); } inline __gnu_cxx::__bfloat16_t modf(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t* __iptr) { float __i, __ret = __builtin_modff(__x, &__i); *__iptr = __gnu_cxx::__bfloat16_t(__i); return __gnu_cxx::__bfloat16_t(__ret); } constexpr __gnu_cxx::__bfloat16_t pow(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y) { return __gnu_cxx::__bfloat16_t(__builtin_powf(__x, __y)); } constexpr __gnu_cxx::__bfloat16_t sin(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_sinf(__x)); } constexpr __gnu_cxx::__bfloat16_t sinh(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_sinhf(__x)); } constexpr __gnu_cxx::__bfloat16_t sqrt(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_sqrtf(__x)); } constexpr __gnu_cxx::__bfloat16_t tan(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_tanf(__x)); } constexpr __gnu_cxx::__bfloat16_t tanh(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_tanhf(__x)); } template inline constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type atan2(_Tp __y, _Up __x) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return atan2(__type(__y), __type(__x)); } template inline constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type fmod(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return fmod(__type(__x), __type(__y)); } template inline constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type pow(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return pow(__type(__x), __type(__y)); } # 1107 "/usr/include/c++/15/cmath" 3 constexpr int fpclassify(float __x) { return __builtin_fpclassify(0, 1, 4, 3, 2, __x); } constexpr int fpclassify(double __x) { return __builtin_fpclassify(0, 1, 4, 3, 2, __x); } constexpr int fpclassify(long double __x) { return __builtin_fpclassify(0, 1, 4, 3, 2, __x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, int>::__type fpclassify(_Tp __x) { return __x != 0 ? 4 : 2; } constexpr bool isfinite(float __x) { return __builtin_isfinite(__x); } constexpr bool isfinite(double __x) { return __builtin_isfinite(__x); } constexpr bool isfinite(long double __x) { return __builtin_isfinite(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, bool>::__type isfinite(_Tp) { return true; } constexpr bool isinf(float __x) { return __builtin_isinf(__x); } constexpr bool isinf(double __x) { return __builtin_isinf(__x); } constexpr bool isinf(long double __x) { return __builtin_isinf(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, bool>::__type isinf(_Tp) { return false; } constexpr bool isnan(float __x) { return __builtin_isnan(__x); } constexpr bool isnan(double __x) { return __builtin_isnan(__x); } constexpr bool isnan(long double __x) { return __builtin_isnan(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, bool>::__type isnan(_Tp) { return false; } constexpr bool isnormal(float __x) { return __builtin_isnormal(__x); } constexpr bool isnormal(double __x) { return __builtin_isnormal(__x); } constexpr bool isnormal(long double __x) { return __builtin_isnormal(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, bool>::__type isnormal(_Tp __x) { return __x != 0 ? true : false; } constexpr bool signbit(float __x) { return __builtin_signbit(__x); } constexpr bool signbit(double __x) { return __builtin_signbit(__x); } constexpr bool signbit(long double __x) { return __builtin_signbit(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, bool>::__type signbit(_Tp __x) { return __x < 0 ? true : false; } constexpr bool isgreater(float __x, float __y) { return __builtin_isgreater(__x, __y); } constexpr bool isgreater(double __x, double __y) { return __builtin_isgreater(__x, __y); } constexpr bool isgreater(long double __x, long double __y) { return __builtin_isgreater(__x, __y); } template constexpr typename __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value && __is_arithmetic<_Up>::__value), bool>::__type isgreater(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return __builtin_isgreater(__type(__x), __type(__y)); } constexpr bool isgreaterequal(float __x, float __y) { return __builtin_isgreaterequal(__x, __y); } constexpr bool isgreaterequal(double __x, double __y) { return __builtin_isgreaterequal(__x, __y); } constexpr bool isgreaterequal(long double __x, long double __y) { return __builtin_isgreaterequal(__x, __y); } template constexpr typename __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value && __is_arithmetic<_Up>::__value), bool>::__type isgreaterequal(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return __builtin_isgreaterequal(__type(__x), __type(__y)); } constexpr bool isless(float __x, float __y) { return __builtin_isless(__x, __y); } constexpr bool isless(double __x, double __y) { return __builtin_isless(__x, __y); } constexpr bool isless(long double __x, long double __y) { return __builtin_isless(__x, __y); } template constexpr typename __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value && __is_arithmetic<_Up>::__value), bool>::__type isless(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return __builtin_isless(__type(__x), __type(__y)); } constexpr bool islessequal(float __x, float __y) { return __builtin_islessequal(__x, __y); } constexpr bool islessequal(double __x, double __y) { return __builtin_islessequal(__x, __y); } constexpr bool islessequal(long double __x, long double __y) { return __builtin_islessequal(__x, __y); } template constexpr typename __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value && __is_arithmetic<_Up>::__value), bool>::__type islessequal(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return __builtin_islessequal(__type(__x), __type(__y)); } constexpr bool islessgreater(float __x, float __y) { return __builtin_islessgreater(__x, __y); } constexpr bool islessgreater(double __x, double __y) { return __builtin_islessgreater(__x, __y); } constexpr bool islessgreater(long double __x, long double __y) { return __builtin_islessgreater(__x, __y); } template constexpr typename __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value && __is_arithmetic<_Up>::__value), bool>::__type islessgreater(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return __builtin_islessgreater(__type(__x), __type(__y)); } constexpr bool isunordered(float __x, float __y) { return __builtin_isunordered(__x, __y); } constexpr bool isunordered(double __x, double __y) { return __builtin_isunordered(__x, __y); } constexpr bool isunordered(long double __x, long double __y) { return __builtin_isunordered(__x, __y); } template constexpr typename __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value && __is_arithmetic<_Up>::__value), bool>::__type isunordered(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return __builtin_isunordered(__type(__x), __type(__y)); } # 1522 "/usr/include/c++/15/cmath" 3 constexpr int fpclassify(_Float16 __x) { return __builtin_fpclassify(0, 1, 4, 3, 2, __x); } constexpr bool isfinite(_Float16 __x) { return __builtin_isfinite(__x); } constexpr bool isinf(_Float16 __x) { return __builtin_isinf(__x); } constexpr bool isnan(_Float16 __x) { return __builtin_isnan(__x); } constexpr bool isnormal(_Float16 __x) { return __builtin_isnormal(__x); } constexpr bool signbit(_Float16 __x) { return __builtin_signbit(__x); } constexpr bool isgreater(_Float16 __x, _Float16 __y) { return __builtin_isgreater(__x, __y); } constexpr bool isgreaterequal(_Float16 __x, _Float16 __y) { return __builtin_isgreaterequal(__x, __y); } constexpr bool isless(_Float16 __x, _Float16 __y) { return __builtin_isless(__x, __y); } constexpr bool islessequal(_Float16 __x, _Float16 __y) { return __builtin_islessequal(__x, __y); } constexpr bool islessgreater(_Float16 __x, _Float16 __y) { return __builtin_islessgreater(__x, __y); } constexpr bool isunordered(_Float16 __x, _Float16 __y) { return __builtin_isunordered(__x, __y); } constexpr int fpclassify(_Float32 __x) { return __builtin_fpclassify(0, 1, 4, 3, 2, __x); } constexpr bool isfinite(_Float32 __x) { return __builtin_isfinite(__x); } constexpr bool isinf(_Float32 __x) { return __builtin_isinf(__x); } constexpr bool isnan(_Float32 __x) { return __builtin_isnan(__x); } constexpr bool isnormal(_Float32 __x) { return __builtin_isnormal(__x); } constexpr bool signbit(_Float32 __x) { return __builtin_signbit(__x); } constexpr bool isgreater(_Float32 __x, _Float32 __y) { return __builtin_isgreater(__x, __y); } constexpr bool isgreaterequal(_Float32 __x, _Float32 __y) { return __builtin_isgreaterequal(__x, __y); } constexpr bool isless(_Float32 __x, _Float32 __y) { return __builtin_isless(__x, __y); } constexpr bool islessequal(_Float32 __x, _Float32 __y) { return __builtin_islessequal(__x, __y); } constexpr bool islessgreater(_Float32 __x, _Float32 __y) { return __builtin_islessgreater(__x, __y); } constexpr bool isunordered(_Float32 __x, _Float32 __y) { return __builtin_isunordered(__x, __y); } constexpr int fpclassify(_Float64 __x) { return __builtin_fpclassify(0, 1, 4, 3, 2, __x); } constexpr bool isfinite(_Float64 __x) { return __builtin_isfinite(__x); } constexpr bool isinf(_Float64 __x) { return __builtin_isinf(__x); } constexpr bool isnan(_Float64 __x) { return __builtin_isnan(__x); } constexpr bool isnormal(_Float64 __x) { return __builtin_isnormal(__x); } constexpr bool signbit(_Float64 __x) { return __builtin_signbit(__x); } constexpr bool isgreater(_Float64 __x, _Float64 __y) { return __builtin_isgreater(__x, __y); } constexpr bool isgreaterequal(_Float64 __x, _Float64 __y) { return __builtin_isgreaterequal(__x, __y); } constexpr bool isless(_Float64 __x, _Float64 __y) { return __builtin_isless(__x, __y); } constexpr bool islessequal(_Float64 __x, _Float64 __y) { return __builtin_islessequal(__x, __y); } constexpr bool islessgreater(_Float64 __x, _Float64 __y) { return __builtin_islessgreater(__x, __y); } constexpr bool isunordered(_Float64 __x, _Float64 __y) { return __builtin_isunordered(__x, __y); } constexpr int fpclassify(_Float128 __x) { return __builtin_fpclassify(0, 1, 4, 3, 2, __x); } constexpr bool isfinite(_Float128 __x) { return __builtin_isfinite(__x); } constexpr bool isinf(_Float128 __x) { return __builtin_isinf(__x); } constexpr bool isnan(_Float128 __x) { return __builtin_isnan(__x); } constexpr bool isnormal(_Float128 __x) { return __builtin_isnormal(__x); } constexpr bool signbit(_Float128 __x) { return __builtin_signbit(__x); } constexpr bool isgreater(_Float128 __x, _Float128 __y) { return __builtin_isgreater(__x, __y); } constexpr bool isgreaterequal(_Float128 __x, _Float128 __y) { return __builtin_isgreaterequal(__x, __y); } constexpr bool isless(_Float128 __x, _Float128 __y) { return __builtin_isless(__x, __y); } constexpr bool islessequal(_Float128 __x, _Float128 __y) { return __builtin_islessequal(__x, __y); } constexpr bool islessgreater(_Float128 __x, _Float128 __y) { return __builtin_islessgreater(__x, __y); } constexpr bool isunordered(_Float128 __x, _Float128 __y) { return __builtin_isunordered(__x, __y); } constexpr int fpclassify(__gnu_cxx::__bfloat16_t __x) { return __builtin_fpclassify(0, 1, 4, 3, 2, __x); } constexpr bool isfinite(__gnu_cxx::__bfloat16_t __x) { return __builtin_isfinite(__x); } constexpr bool isinf(__gnu_cxx::__bfloat16_t __x) { return __builtin_isinf(__x); } constexpr bool isnan(__gnu_cxx::__bfloat16_t __x) { return __builtin_isnan(__x); } constexpr bool isnormal(__gnu_cxx::__bfloat16_t __x) { return __builtin_isnormal(__x); } constexpr bool signbit(__gnu_cxx::__bfloat16_t __x) { return __builtin_signbit(__x); } constexpr bool isgreater(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y) { return __builtin_isgreater(__x, __y); } constexpr bool isgreaterequal(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y) { return __builtin_isgreaterequal(__x, __y); } constexpr bool isless(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y) { return __builtin_isless(__x, __y); } constexpr bool islessequal(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y) { return __builtin_islessequal(__x, __y); } constexpr bool islessgreater(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y) { return __builtin_islessgreater(__x, __y); } constexpr bool isunordered(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y) { return __builtin_isunordered(__x, __y); } # 1827 "/usr/include/c++/15/cmath" 3 using ::acosf; using ::acosl; using ::asinf; using ::asinl; using ::atanf; using ::atanl; using ::atan2f; using ::atan2l; using ::ceilf; using ::ceill; using ::cosf; using ::cosl; using ::coshf; using ::coshl; using ::expf; using ::expl; using ::fabsf; using ::fabsl; using ::floorf; using ::floorl; using ::fmodf; using ::fmodl; using ::frexpf; using ::frexpl; using ::ldexpf; using ::ldexpl; using ::logf; using ::logl; using ::log10f; using ::log10l; using ::modff; using ::modfl; using ::powf; using ::powl; using ::sinf; using ::sinl; using ::sinhf; using ::sinhl; using ::sqrtf; using ::sqrtl; using ::tanf; using ::tanl; using ::tanhf; using ::tanhl; # 2092 "/usr/include/c++/15/cmath" 3 using ::double_t; using ::float_t; using ::acosh; using ::acoshf; using ::acoshl; using ::asinh; using ::asinhf; using ::asinhl; using ::atanh; using ::atanhf; using ::atanhl; using ::cbrt; using ::cbrtf; using ::cbrtl; using ::copysign; using ::copysignf; using ::copysignl; using ::erf; using ::erff; using ::erfl; using ::erfc; using ::erfcf; using ::erfcl; using ::exp2; using ::exp2f; using ::exp2l; using ::expm1; using ::expm1f; using ::expm1l; using ::fdim; using ::fdimf; using ::fdiml; using ::fma; using ::fmaf; using ::fmal; using ::fmax; using ::fmaxf; using ::fmaxl; using ::fmin; using ::fminf; using ::fminl; using ::hypot; using ::hypotf; using ::hypotl; using ::ilogb; using ::ilogbf; using ::ilogbl; using ::lgamma; using ::lgammaf; using ::lgammal; using ::llrint; using ::llrintf; using ::llrintl; using ::llround; using ::llroundf; using ::llroundl; using ::log1p; using ::log1pf; using ::log1pl; using ::log2; using ::log2f; using ::log2l; using ::logb; using ::logbf; using ::logbl; using ::lrint; using ::lrintf; using ::lrintl; using ::lround; using ::lroundf; using ::lroundl; using ::nan; using ::nanf; using ::nanl; using ::nearbyint; using ::nearbyintf; using ::nearbyintl; using ::nextafter; using ::nextafterf; using ::nextafterl; using ::nexttoward; using ::nexttowardf; using ::nexttowardl; using ::remainder; using ::remainderf; using ::remainderl; using ::remquo; using ::remquof; using ::remquol; using ::rint; using ::rintf; using ::rintl; using ::round; using ::roundf; using ::roundl; using ::scalbln; using ::scalblnf; using ::scalblnl; using ::scalbn; using ::scalbnf; using ::scalbnl; using ::tgamma; using ::tgammaf; using ::tgammal; using ::trunc; using ::truncf; using ::truncl; constexpr float acosh(float __x) { return __builtin_acoshf(__x); } constexpr long double acosh(long double __x) { return __builtin_acoshl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type acosh(_Tp __x) { return __builtin_acosh(__x); } constexpr float asinh(float __x) { return __builtin_asinhf(__x); } constexpr long double asinh(long double __x) { return __builtin_asinhl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type asinh(_Tp __x) { return __builtin_asinh(__x); } constexpr float atanh(float __x) { return __builtin_atanhf(__x); } constexpr long double atanh(long double __x) { return __builtin_atanhl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type atanh(_Tp __x) { return __builtin_atanh(__x); } constexpr float cbrt(float __x) { return __builtin_cbrtf(__x); } constexpr long double cbrt(long double __x) { return __builtin_cbrtl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type cbrt(_Tp __x) { return __builtin_cbrt(__x); } constexpr float copysign(float __x, float __y) { return __builtin_copysignf(__x, __y); } constexpr long double copysign(long double __x, long double __y) { return __builtin_copysignl(__x, __y); } constexpr float erf(float __x) { return __builtin_erff(__x); } constexpr long double erf(long double __x) { return __builtin_erfl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type erf(_Tp __x) { return __builtin_erf(__x); } constexpr float erfc(float __x) { return __builtin_erfcf(__x); } constexpr long double erfc(long double __x) { return __builtin_erfcl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type erfc(_Tp __x) { return __builtin_erfc(__x); } constexpr float exp2(float __x) { return __builtin_exp2f(__x); } constexpr long double exp2(long double __x) { return __builtin_exp2l(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type exp2(_Tp __x) { return __builtin_exp2(__x); } constexpr float expm1(float __x) { return __builtin_expm1f(__x); } constexpr long double expm1(long double __x) { return __builtin_expm1l(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type expm1(_Tp __x) { return __builtin_expm1(__x); } constexpr float fdim(float __x, float __y) { return __builtin_fdimf(__x, __y); } constexpr long double fdim(long double __x, long double __y) { return __builtin_fdiml(__x, __y); } constexpr float fma(float __x, float __y, float __z) { return __builtin_fmaf(__x, __y, __z); } constexpr long double fma(long double __x, long double __y, long double __z) { return __builtin_fmal(__x, __y, __z); } constexpr float fmax(float __x, float __y) { return __builtin_fmaxf(__x, __y); } constexpr long double fmax(long double __x, long double __y) { return __builtin_fmaxl(__x, __y); } constexpr float fmin(float __x, float __y) { return __builtin_fminf(__x, __y); } constexpr long double fmin(long double __x, long double __y) { return __builtin_fminl(__x, __y); } constexpr float hypot(float __x, float __y) { return __builtin_hypotf(__x, __y); } constexpr long double hypot(long double __x, long double __y) { return __builtin_hypotl(__x, __y); } constexpr int ilogb(float __x) { return __builtin_ilogbf(__x); } constexpr int ilogb(long double __x) { return __builtin_ilogbl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, int>::__type ilogb(_Tp __x) { return __builtin_ilogb(__x); } constexpr float lgamma(float __x) { return __builtin_lgammaf(__x); } constexpr long double lgamma(long double __x) { return __builtin_lgammal(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type lgamma(_Tp __x) { return __builtin_lgamma(__x); } constexpr long long llrint(float __x) { return __builtin_llrintf(__x); } constexpr long long llrint(long double __x) { return __builtin_llrintl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, long long>::__type llrint(_Tp __x) { return __builtin_llrint(__x); } constexpr long long llround(float __x) { return __builtin_llroundf(__x); } constexpr long long llround(long double __x) { return __builtin_llroundl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, long long>::__type llround(_Tp __x) { return __builtin_llround(__x); } constexpr float log1p(float __x) { return __builtin_log1pf(__x); } constexpr long double log1p(long double __x) { return __builtin_log1pl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type log1p(_Tp __x) { return __builtin_log1p(__x); } constexpr float log2(float __x) { return __builtin_log2f(__x); } constexpr long double log2(long double __x) { return __builtin_log2l(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type log2(_Tp __x) { return __builtin_log2(__x); } constexpr float logb(float __x) { return __builtin_logbf(__x); } constexpr long double logb(long double __x) { return __builtin_logbl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type logb(_Tp __x) { return __builtin_logb(__x); } constexpr long lrint(float __x) { return __builtin_lrintf(__x); } constexpr long lrint(long double __x) { return __builtin_lrintl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, long>::__type lrint(_Tp __x) { return __builtin_lrint(__x); } constexpr long lround(float __x) { return __builtin_lroundf(__x); } constexpr long lround(long double __x) { return __builtin_lroundl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, long>::__type lround(_Tp __x) { return __builtin_lround(__x); } constexpr float nearbyint(float __x) { return __builtin_nearbyintf(__x); } constexpr long double nearbyint(long double __x) { return __builtin_nearbyintl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type nearbyint(_Tp __x) { return __builtin_nearbyint(__x); } constexpr float nextafter(float __x, float __y) { return __builtin_nextafterf(__x, __y); } constexpr long double nextafter(long double __x, long double __y) { return __builtin_nextafterl(__x, __y); } constexpr float nexttoward(float __x, long double __y) { return __builtin_nexttowardf(__x, __y); } constexpr long double nexttoward(long double __x, long double __y) { return __builtin_nexttowardl(__x, __y); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type nexttoward(_Tp __x, long double __y) { return __builtin_nexttoward(__x, __y); } constexpr float remainder(float __x, float __y) { return __builtin_remainderf(__x, __y); } constexpr long double remainder(long double __x, long double __y) { return __builtin_remainderl(__x, __y); } inline float remquo(float __x, float __y, int* __pquo) { return __builtin_remquof(__x, __y, __pquo); } inline long double remquo(long double __x, long double __y, int* __pquo) { return __builtin_remquol(__x, __y, __pquo); } constexpr float rint(float __x) { return __builtin_rintf(__x); } constexpr long double rint(long double __x) { return __builtin_rintl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type rint(_Tp __x) { return __builtin_rint(__x); } constexpr float round(float __x) { return __builtin_roundf(__x); } constexpr long double round(long double __x) { return __builtin_roundl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type round(_Tp __x) { return __builtin_round(__x); } constexpr float scalbln(float __x, long __ex) { return __builtin_scalblnf(__x, __ex); } constexpr long double scalbln(long double __x, long __ex) { return __builtin_scalblnl(__x, __ex); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type scalbln(_Tp __x, long __ex) { return __builtin_scalbln(__x, __ex); } constexpr float scalbn(float __x, int __ex) { return __builtin_scalbnf(__x, __ex); } constexpr long double scalbn(long double __x, int __ex) { return __builtin_scalbnl(__x, __ex); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type scalbn(_Tp __x, int __ex) { return __builtin_scalbn(__x, __ex); } constexpr float tgamma(float __x) { return __builtin_tgammaf(__x); } constexpr long double tgamma(long double __x) { return __builtin_tgammal(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type tgamma(_Tp __x) { return __builtin_tgamma(__x); } constexpr float trunc(float __x) { return __builtin_truncf(__x); } constexpr long double trunc(long double __x) { return __builtin_truncl(__x); } template constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type trunc(_Tp __x) { return __builtin_trunc(__x); } constexpr _Float16 acosh(_Float16 __x) { return _Float16(__builtin_acoshf(__x)); } constexpr _Float16 asinh(_Float16 __x) { return _Float16(__builtin_asinhf(__x)); } constexpr _Float16 atanh(_Float16 __x) { return _Float16(__builtin_atanhf(__x)); } constexpr _Float16 cbrt(_Float16 __x) { return _Float16(__builtin_cbrtf(__x)); } constexpr _Float16 copysign(_Float16 __x, _Float16 __y) { return __builtin_copysignf16(__x, __y); } constexpr _Float16 erf(_Float16 __x) { return _Float16(__builtin_erff(__x)); } constexpr _Float16 erfc(_Float16 __x) { return _Float16(__builtin_erfcf(__x)); } constexpr _Float16 exp2(_Float16 __x) { return _Float16(__builtin_exp2f(__x)); } constexpr _Float16 expm1(_Float16 __x) { return _Float16(__builtin_expm1f(__x)); } constexpr _Float16 fdim(_Float16 __x, _Float16 __y) { return _Float16(__builtin_fdimf(__x, __y)); } constexpr _Float16 fma(_Float16 __x, _Float16 __y, _Float16 __z) { return _Float16(__builtin_fmaf(__x, __y, __z)); } constexpr _Float16 fmax(_Float16 __x, _Float16 __y) { return _Float16(__builtin_fmaxf(__x, __y)); } constexpr _Float16 fmin(_Float16 __x, _Float16 __y) { return _Float16(__builtin_fminf(__x, __y)); } constexpr _Float16 hypot(_Float16 __x, _Float16 __y) { return _Float16(__builtin_hypotf(__x, __y)); } constexpr int ilogb(_Float16 __x) { return __builtin_ilogbf(__x); } constexpr _Float16 lgamma(_Float16 __x) { return _Float16(__builtin_lgammaf(__x)); } constexpr long long llrint(_Float16 __x) { return __builtin_llrintf(__x); } constexpr long long llround(_Float16 __x) { return __builtin_llroundf(__x); } constexpr _Float16 log1p(_Float16 __x) { return _Float16(__builtin_log1pf(__x)); } constexpr _Float16 log2(_Float16 __x) { return _Float16(__builtin_log2f(__x)); } constexpr _Float16 logb(_Float16 __x) { return _Float16(__builtin_logbf(__x)); } constexpr long lrint(_Float16 __x) { return __builtin_lrintf(__x); } constexpr long lround(_Float16 __x) { return __builtin_lroundf(__x); } constexpr _Float16 nearbyint(_Float16 __x) { return _Float16(__builtin_nearbyintf(__x)); } constexpr _Float16 nextafter(_Float16 __x, _Float16 __y) { if consteval { return __builtin_nextafterf16(__x, __y); } using __float16_int_type = short int; __float16_int_type __hx, __hy, __ix, __iy; __builtin_memcpy(&__hx, &__x, sizeof(__x)); __builtin_memcpy(&__hy, &__y, sizeof(__x)); __ix = __hx & 0x7fff; __iy = __hy & 0x7fff; if (__ix > 0x7c00 || __iy > 0x7c00) return __x + __y; if (__x == __y) return __y; if (__ix == 0) { __hy = (__hy & 0x8000) | 1; __builtin_memcpy(&__x, &__hy, sizeof(__x)); __builtin_nextafterf(0.0f, 1.0f); return __x; } if (__hx >= 0) { if (__hx > __hy) --__hx; else ++__hx; } else { if (__hy >= 0 || __hx > __hy) --__hx; else ++__hx; } __hy = __hx & 0x7c00; if (__hy >= 0x7c00) __builtin_nextafterf(3.40282346638528859811704183484516925e+38F, __builtin_inff()); else if (__hy < 0x0400) __builtin_nextafterf(1.17549435082228750796873653722224568e-38F, 0.0f); __builtin_memcpy(&__x, &__hx, sizeof(__x)); return __x; } constexpr _Float16 remainder(_Float16 __x, _Float16 __y) { return _Float16(__builtin_remainderf(__x, __y)); } inline _Float16 remquo(_Float16 __x, _Float16 __y, int* __pquo) { return _Float16(__builtin_remquof(__x, __y, __pquo)); } constexpr _Float16 rint(_Float16 __x) { return _Float16(__builtin_rintf(__x)); } constexpr _Float16 round(_Float16 __x) { return _Float16(__builtin_roundf(__x)); } constexpr _Float16 scalbln(_Float16 __x, long __ex) { return _Float16(__builtin_scalblnf(__x, __ex)); } constexpr _Float16 scalbn(_Float16 __x, int __ex) { return _Float16(__builtin_scalbnf(__x, __ex)); } constexpr _Float16 tgamma(_Float16 __x) { return _Float16(__builtin_tgammaf(__x)); } constexpr _Float16 trunc(_Float16 __x) { return _Float16(__builtin_truncf(__x)); } constexpr _Float32 acosh(_Float32 __x) { return __builtin_acoshf(__x); } constexpr _Float32 asinh(_Float32 __x) { return __builtin_asinhf(__x); } constexpr _Float32 atanh(_Float32 __x) { return __builtin_atanhf(__x); } constexpr _Float32 cbrt(_Float32 __x) { return __builtin_cbrtf(__x); } constexpr _Float32 copysign(_Float32 __x, _Float32 __y) { return __builtin_copysignf(__x, __y); } constexpr _Float32 erf(_Float32 __x) { return __builtin_erff(__x); } constexpr _Float32 erfc(_Float32 __x) { return __builtin_erfcf(__x); } constexpr _Float32 exp2(_Float32 __x) { return __builtin_exp2f(__x); } constexpr _Float32 expm1(_Float32 __x) { return __builtin_expm1f(__x); } constexpr _Float32 fdim(_Float32 __x, _Float32 __y) { return __builtin_fdimf(__x, __y); } constexpr _Float32 fma(_Float32 __x, _Float32 __y, _Float32 __z) { return __builtin_fmaf(__x, __y, __z); } constexpr _Float32 fmax(_Float32 __x, _Float32 __y) { return __builtin_fmaxf(__x, __y); } constexpr _Float32 fmin(_Float32 __x, _Float32 __y) { return __builtin_fminf(__x, __y); } constexpr _Float32 hypot(_Float32 __x, _Float32 __y) { return __builtin_hypotf(__x, __y); } constexpr int ilogb(_Float32 __x) { return __builtin_ilogbf(__x); } constexpr _Float32 lgamma(_Float32 __x) { return __builtin_lgammaf(__x); } constexpr long long llrint(_Float32 __x) { return __builtin_llrintf(__x); } constexpr long long llround(_Float32 __x) { return __builtin_llroundf(__x); } constexpr _Float32 log1p(_Float32 __x) { return __builtin_log1pf(__x); } constexpr _Float32 log2(_Float32 __x) { return __builtin_log2f(__x); } constexpr _Float32 logb(_Float32 __x) { return __builtin_logbf(__x); } constexpr long lrint(_Float32 __x) { return __builtin_lrintf(__x); } constexpr long lround(_Float32 __x) { return __builtin_lroundf(__x); } constexpr _Float32 nearbyint(_Float32 __x) { return __builtin_nearbyintf(__x); } constexpr _Float32 nextafter(_Float32 __x, _Float32 __y) { return __builtin_nextafterf(__x, __y); } constexpr _Float32 remainder(_Float32 __x, _Float32 __y) { return __builtin_remainderf(__x, __y); } inline _Float32 remquo(_Float32 __x, _Float32 __y, int* __pquo) { return __builtin_remquof(__x, __y, __pquo); } constexpr _Float32 rint(_Float32 __x) { return __builtin_rintf(__x); } constexpr _Float32 round(_Float32 __x) { return __builtin_roundf(__x); } constexpr _Float32 scalbln(_Float32 __x, long __ex) { return __builtin_scalblnf(__x, __ex); } constexpr _Float32 scalbn(_Float32 __x, int __ex) { return __builtin_scalbnf(__x, __ex); } constexpr _Float32 tgamma(_Float32 __x) { return __builtin_tgammaf(__x); } constexpr _Float32 trunc(_Float32 __x) { return __builtin_truncf(__x); } constexpr _Float64 acosh(_Float64 __x) { return __builtin_acosh(__x); } constexpr _Float64 asinh(_Float64 __x) { return __builtin_asinh(__x); } constexpr _Float64 atanh(_Float64 __x) { return __builtin_atanh(__x); } constexpr _Float64 cbrt(_Float64 __x) { return __builtin_cbrt(__x); } constexpr _Float64 copysign(_Float64 __x, _Float64 __y) { return __builtin_copysign(__x, __y); } constexpr _Float64 erf(_Float64 __x) { return __builtin_erf(__x); } constexpr _Float64 erfc(_Float64 __x) { return __builtin_erfc(__x); } constexpr _Float64 exp2(_Float64 __x) { return __builtin_exp2(__x); } constexpr _Float64 expm1(_Float64 __x) { return __builtin_expm1(__x); } constexpr _Float64 fdim(_Float64 __x, _Float64 __y) { return __builtin_fdim(__x, __y); } constexpr _Float64 fma(_Float64 __x, _Float64 __y, _Float64 __z) { return __builtin_fma(__x, __y, __z); } constexpr _Float64 fmax(_Float64 __x, _Float64 __y) { return __builtin_fmax(__x, __y); } constexpr _Float64 fmin(_Float64 __x, _Float64 __y) { return __builtin_fmin(__x, __y); } constexpr _Float64 hypot(_Float64 __x, _Float64 __y) { return __builtin_hypot(__x, __y); } constexpr int ilogb(_Float64 __x) { return __builtin_ilogb(__x); } constexpr _Float64 lgamma(_Float64 __x) { return __builtin_lgamma(__x); } constexpr long long llrint(_Float64 __x) { return __builtin_llrint(__x); } constexpr long long llround(_Float64 __x) { return __builtin_llround(__x); } constexpr _Float64 log1p(_Float64 __x) { return __builtin_log1p(__x); } constexpr _Float64 log2(_Float64 __x) { return __builtin_log2(__x); } constexpr _Float64 logb(_Float64 __x) { return __builtin_logb(__x); } constexpr long lrint(_Float64 __x) { return __builtin_lrint(__x); } constexpr long lround(_Float64 __x) { return __builtin_lround(__x); } constexpr _Float64 nearbyint(_Float64 __x) { return __builtin_nearbyint(__x); } constexpr _Float64 nextafter(_Float64 __x, _Float64 __y) { return __builtin_nextafter(__x, __y); } constexpr _Float64 remainder(_Float64 __x, _Float64 __y) { return __builtin_remainder(__x, __y); } inline _Float64 remquo(_Float64 __x, _Float64 __y, int* __pquo) { return __builtin_remquo(__x, __y, __pquo); } constexpr _Float64 rint(_Float64 __x) { return __builtin_rint(__x); } constexpr _Float64 round(_Float64 __x) { return __builtin_round(__x); } constexpr _Float64 scalbln(_Float64 __x, long __ex) { return __builtin_scalbln(__x, __ex); } constexpr _Float64 scalbn(_Float64 __x, int __ex) { return __builtin_scalbn(__x, __ex); } constexpr _Float64 tgamma(_Float64 __x) { return __builtin_tgamma(__x); } constexpr _Float64 trunc(_Float64 __x) { return __builtin_trunc(__x); } # 3370 "/usr/include/c++/15/cmath" 3 constexpr _Float128 acosh(_Float128 __x) { return __builtin_acoshf128(__x); } constexpr _Float128 asinh(_Float128 __x) { return __builtin_asinhf128(__x); } constexpr _Float128 atanh(_Float128 __x) { return __builtin_atanhf128(__x); } constexpr _Float128 cbrt(_Float128 __x) { return __builtin_cbrtf128(__x); } constexpr _Float128 copysign(_Float128 __x, _Float128 __y) { return __builtin_copysignf128(__x, __y); } constexpr _Float128 erf(_Float128 __x) { return __builtin_erff128(__x); } constexpr _Float128 erfc(_Float128 __x) { return __builtin_erfcf128(__x); } constexpr _Float128 exp2(_Float128 __x) { return __builtin_exp2f128(__x); } constexpr _Float128 expm1(_Float128 __x) { return __builtin_expm1f128(__x); } constexpr _Float128 fdim(_Float128 __x, _Float128 __y) { return __builtin_fdimf128(__x, __y); } constexpr _Float128 fma(_Float128 __x, _Float128 __y, _Float128 __z) { return __builtin_fmaf128(__x, __y, __z); } constexpr _Float128 fmax(_Float128 __x, _Float128 __y) { return __builtin_fmaxf128(__x, __y); } constexpr _Float128 fmin(_Float128 __x, _Float128 __y) { return __builtin_fminf128(__x, __y); } constexpr _Float128 hypot(_Float128 __x, _Float128 __y) { return __builtin_hypotf128(__x, __y); } constexpr int ilogb(_Float128 __x) { return __builtin_ilogbf128(__x); } constexpr _Float128 lgamma(_Float128 __x) { return __builtin_lgammaf128(__x); } constexpr long long llrint(_Float128 __x) { return __builtin_llrintf128(__x); } constexpr long long llround(_Float128 __x) { return __builtin_llroundf128(__x); } constexpr _Float128 log1p(_Float128 __x) { return __builtin_log1pf128(__x); } constexpr _Float128 log2(_Float128 __x) { return __builtin_log2f128(__x); } constexpr _Float128 logb(_Float128 __x) { return __builtin_logbf128(__x); } constexpr long lrint(_Float128 __x) { return __builtin_lrintf128(__x); } constexpr long lround(_Float128 __x) { return __builtin_lroundf128(__x); } constexpr _Float128 nearbyint(_Float128 __x) { return __builtin_nearbyintf128(__x); } constexpr _Float128 nextafter(_Float128 __x, _Float128 __y) { return __builtin_nextafterf128(__x, __y); } constexpr _Float128 remainder(_Float128 __x, _Float128 __y) { return __builtin_remainderf128(__x, __y); } inline _Float128 remquo(_Float128 __x, _Float128 __y, int* __pquo) { return __builtin_remquof128(__x, __y, __pquo); } constexpr _Float128 rint(_Float128 __x) { return __builtin_rintf128(__x); } constexpr _Float128 round(_Float128 __x) { return __builtin_roundf128(__x); } constexpr _Float128 scalbln(_Float128 __x, long __ex) { return __builtin_scalblnf128(__x, __ex); } constexpr _Float128 scalbn(_Float128 __x, int __ex) { return __builtin_scalbnf128(__x, __ex); } constexpr _Float128 tgamma(_Float128 __x) { return __builtin_tgammaf128(__x); } constexpr _Float128 trunc(_Float128 __x) { return __builtin_truncf128(__x); } constexpr __gnu_cxx::__bfloat16_t acosh(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_acoshf(__x)); } constexpr __gnu_cxx::__bfloat16_t asinh(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_asinhf(__x)); } constexpr __gnu_cxx::__bfloat16_t atanh(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_atanhf(__x)); } constexpr __gnu_cxx::__bfloat16_t cbrt(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_cbrtf(__x)); } constexpr __gnu_cxx::__bfloat16_t copysign(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y) { return __gnu_cxx::__bfloat16_t(__builtin_copysignf(__x, __y)); } constexpr __gnu_cxx::__bfloat16_t erf(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_erff(__x)); } constexpr __gnu_cxx::__bfloat16_t erfc(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_erfcf(__x)); } constexpr __gnu_cxx::__bfloat16_t exp2(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_exp2f(__x)); } constexpr __gnu_cxx::__bfloat16_t expm1(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_expm1f(__x)); } constexpr __gnu_cxx::__bfloat16_t fdim(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y) { return __gnu_cxx::__bfloat16_t(__builtin_fdimf(__x, __y)); } constexpr __gnu_cxx::__bfloat16_t fma(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y, __gnu_cxx::__bfloat16_t __z) { return __gnu_cxx::__bfloat16_t(__builtin_fmaf(__x, __y, __z)); } constexpr __gnu_cxx::__bfloat16_t fmax(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y) { return __gnu_cxx::__bfloat16_t(__builtin_fmaxf(__x, __y)); } constexpr __gnu_cxx::__bfloat16_t fmin(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y) { return __gnu_cxx::__bfloat16_t(__builtin_fminf(__x, __y)); } constexpr __gnu_cxx::__bfloat16_t hypot(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y) { return __gnu_cxx::__bfloat16_t(__builtin_hypotf(__x, __y)); } constexpr int ilogb(__gnu_cxx::__bfloat16_t __x) { return __builtin_ilogbf(__x); } constexpr __gnu_cxx::__bfloat16_t lgamma(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_lgammaf(__x)); } constexpr long long llrint(__gnu_cxx::__bfloat16_t __x) { return __builtin_llrintf(__x); } constexpr long long llround(__gnu_cxx::__bfloat16_t __x) { return __builtin_llroundf(__x); } constexpr __gnu_cxx::__bfloat16_t log1p(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_log1pf(__x)); } constexpr __gnu_cxx::__bfloat16_t log2(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_log2f(__x)); } constexpr __gnu_cxx::__bfloat16_t logb(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_logbf(__x)); } constexpr long lrint(__gnu_cxx::__bfloat16_t __x) { return __builtin_lrintf(__x); } constexpr long lround(__gnu_cxx::__bfloat16_t __x) { return __builtin_lroundf(__x); } constexpr __gnu_cxx::__bfloat16_t nearbyint(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_nearbyintf(__x)); } constexpr __gnu_cxx::__bfloat16_t nextafter(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y) { if consteval { return __builtin_nextafterf16b(__x, __y); } using __bfloat16_int_type = short int; __bfloat16_int_type __hx, __hy, __ix, __iy; __builtin_memcpy(&__hx, &__x, sizeof(__x)); __builtin_memcpy(&__hy, &__y, sizeof(__x)); __ix = __hx & 0x7fff; __iy = __hy & 0x7fff; if (__ix > 0x7f80 || __iy > 0x7f80) return __x + __y; if (__x == __y) return __y; if (__ix == 0) { __hy = (__hy & 0x8000) | 1; __builtin_memcpy(&__x, &__hy, sizeof(__x)); __builtin_nextafterf(0.0f, 1.0f); return __x; } if (__hx >= 0) { if (__hx > __hy) --__hx; else ++__hx; } else { if (__hy >= 0 || __hx > __hy) --__hx; else ++__hx; } __hy = __hx & 0x7f80; if (__hy >= 0x7f80) __builtin_nextafterf(3.40282346638528859811704183484516925e+38F, __builtin_inff()); else if (__hy < 0x0080) __builtin_nextafterf(1.17549435082228750796873653722224568e-38F, 0.0f); __builtin_memcpy(&__x, &__hx, sizeof(__x)); return __x; } constexpr __gnu_cxx::__bfloat16_t remainder(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y) { return __gnu_cxx::__bfloat16_t(__builtin_remainderf(__x, __y)); } inline __gnu_cxx::__bfloat16_t remquo(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y, int* __pquo) { return __gnu_cxx::__bfloat16_t(__builtin_remquof(__x, __y, __pquo)); } constexpr __gnu_cxx::__bfloat16_t rint(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_rintf(__x)); } constexpr __gnu_cxx::__bfloat16_t round(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_roundf(__x)); } constexpr __gnu_cxx::__bfloat16_t scalbln(__gnu_cxx::__bfloat16_t __x, long __ex) { return __gnu_cxx::__bfloat16_t(__builtin_scalblnf(__x, __ex)); } constexpr __gnu_cxx::__bfloat16_t scalbn(__gnu_cxx::__bfloat16_t __x, int __ex) { return __gnu_cxx::__bfloat16_t(__builtin_scalbnf(__x, __ex)); } constexpr __gnu_cxx::__bfloat16_t tgamma(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_tgammaf(__x)); } constexpr __gnu_cxx::__bfloat16_t trunc(__gnu_cxx::__bfloat16_t __x) { return __gnu_cxx::__bfloat16_t(__builtin_truncf(__x)); } template constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type copysign(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return copysign(__type(__x), __type(__y)); } template constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type fdim(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return fdim(__type(__x), __type(__y)); } template constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type fmax(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return fmax(__type(__x), __type(__y)); } template constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type fmin(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return fmin(__type(__x), __type(__y)); } template constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type hypot(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return hypot(__type(__x), __type(__y)); } template constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type nextafter(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return nextafter(__type(__x), __type(__y)); } template constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type remainder(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return remainder(__type(__x), __type(__y)); } template inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type remquo(_Tp __x, _Up __y, int* __pquo) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return remquo(__type(__x), __type(__y), __pquo); } template constexpr typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type fma(_Tp __x, _Up __y, _Vp __z) { typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type; return fma(__type(__x), __type(__y), __type(__z)); } template inline _Tp __hypot3(_Tp __x, _Tp __y, _Tp __z) { __x = std::abs(__x); __y = std::abs(__y); __z = std::abs(__z); if (_Tp __a = __x < __y ? __y < __z ? __z : __y : __x < __z ? __z : __x) return __a * std::sqrt((__x / __a) * (__x / __a) + (__y / __a) * (__y / __a) + (__z / __a) * (__z / __a)); else return {}; } inline float hypot(float __x, float __y, float __z) { return std::__hypot3(__x, __y, __z); } inline double hypot(double __x, double __y, double __z) { return std::__hypot3(__x, __y, __z); } inline long double hypot(long double __x, long double __y, long double __z) { return std::__hypot3(__x, __y, __z); } template typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type hypot(_Tp __x, _Up __y, _Vp __z) { using __type = typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type; return std::__hypot3<__type>(__x, __y, __z); } inline _Float16 hypot(_Float16 __x, _Float16 __y, _Float16 __z) { return std::__hypot3<_Float16>(__x, __y, __z); } inline _Float32 hypot(_Float32 __x, _Float32 __y, _Float32 __z) { return std::__hypot3<_Float32>(__x, __y, __z); } inline _Float64 hypot(_Float64 __x, _Float64 __y, _Float64 __z) { return std::__hypot3<_Float64>(__x, __y, __z); } inline _Float128 hypot(_Float128 __x, _Float128 __y, _Float128 __z) { return std::__hypot3<_Float128>(__x, __y, __z); } inline __gnu_cxx::__bfloat16_t hypot(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y, __gnu_cxx::__bfloat16_t __z) { return std::__hypot3<__gnu_cxx::__bfloat16_t>(__x, __y, __z); } template constexpr _Fp __lerp(_Fp __a, _Fp __b, _Fp __t) noexcept { if ((__a <= 0 && __b >= 0) || (__a >= 0 && __b <= 0)) return __t * __b + (1 - __t) * __a; if (__t == 1) return __b; const _Fp __x = __a + __t * (__b - __a); return (__t > 1) == (__b > __a) ? (__b < __x ? __x : __b) : (__b > __x ? __x : __b); } constexpr float lerp(float __a, float __b, float __t) noexcept { return std::__lerp(__a, __b, __t); } constexpr double lerp(double __a, double __b, double __t) noexcept { return std::__lerp(__a, __b, __t); } constexpr long double lerp(long double __a, long double __b, long double __t) noexcept { return std::__lerp(__a, __b, __t); } template constexpr __gnu_cxx::__promoted_t<_Tp, _Up, _Vp> lerp(_Tp __x, _Up __y, _Vp __z) noexcept { using __type = __gnu_cxx::__promoted_t<_Tp, _Up, _Vp>; return std::__lerp<__type>(__x, __y, __z); } inline _Float16 lerp(_Float16 __x, _Float16 __y, _Float16 __z) noexcept { return std::__lerp<_Float16>(__x, __y, __z); } inline _Float32 lerp(_Float32 __x, _Float32 __y, _Float32 __z) noexcept { return std::__lerp<_Float32>(__x, __y, __z); } inline _Float64 lerp(_Float64 __x, _Float64 __y, _Float64 __z) noexcept { return std::__lerp<_Float64>(__x, __y, __z); } inline _Float128 lerp(_Float128 __x, _Float128 __y, _Float128 __z) noexcept { return std::__lerp<_Float128>(__x, __y, __z); } inline __gnu_cxx::__bfloat16_t lerp(__gnu_cxx::__bfloat16_t __x, __gnu_cxx::__bfloat16_t __y, __gnu_cxx::__bfloat16_t __z) noexcept { return std::__lerp<__gnu_cxx::__bfloat16_t>(__x, __y, __z); } } # 1 "/usr/include/c++/15/bits/specfun.h" 1 3 # 37 "/usr/include/c++/15/bits/specfun.h" 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 38 "/usr/include/c++/15/bits/specfun.h" 2 3 # 1 "/usr/include/c++/15/bits/stl_algobase.h" 1 3 # 60 "/usr/include/c++/15/bits/stl_algobase.h" 3 # 1 "/usr/include/c++/15/bits/functexcept.h" 1 3 # 42 "/usr/include/c++/15/bits/functexcept.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { void __throw_bad_exception(void) __attribute__((__noreturn__)); void __throw_bad_alloc(void) __attribute__((__noreturn__)); void __throw_bad_array_new_length(void) __attribute__((__noreturn__)); void __throw_bad_cast(void) __attribute__((__noreturn__,__cold__)); void __throw_bad_typeid(void) __attribute__((__noreturn__,__cold__)); void __throw_logic_error(const char*) __attribute__((__noreturn__,__cold__)); void __throw_domain_error(const char*) __attribute__((__noreturn__,__cold__)); void __throw_invalid_argument(const char*) __attribute__((__noreturn__,__cold__)); void __throw_length_error(const char*) __attribute__((__noreturn__,__cold__)); void __throw_out_of_range(const char*) __attribute__((__noreturn__,__cold__)); void __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__,__cold__)) __attribute__((__format__(__gnu_printf__, 1, 2))); void __throw_runtime_error(const char*) __attribute__((__noreturn__,__cold__)); void __throw_range_error(const char*) __attribute__((__noreturn__,__cold__)); void __throw_overflow_error(const char*) __attribute__((__noreturn__,__cold__)); void __throw_underflow_error(const char*) __attribute__((__noreturn__,__cold__)); void __throw_ios_failure(const char*) __attribute__((__noreturn__,__cold__)); void __throw_ios_failure(const char*, int) __attribute__((__noreturn__,__cold__)); void __throw_system_error(int) __attribute__((__noreturn__,__cold__)); void __throw_future_error(int) __attribute__((__noreturn__,__cold__)); void __throw_bad_function_call() __attribute__((__noreturn__,__cold__)); # 140 "/usr/include/c++/15/bits/functexcept.h" 3 } # 61 "/usr/include/c++/15/bits/stl_algobase.h" 2 3 # 69 "/usr/include/c++/15/bits/stl_algobase.h" 3 # 1 "/usr/include/c++/15/debug/debug.h" 1 3 # 48 "/usr/include/c++/15/debug/debug.h" 3 namespace std { namespace __debug { } } namespace __gnu_debug { using namespace std::__debug; template struct _Safe_iterator; } # 70 "/usr/include/c++/15/bits/stl_algobase.h" 2 3 # 1 "/usr/include/c++/15/bits/predefined_ops.h" 1 3 # 35 "/usr/include/c++/15/bits/predefined_ops.h" 3 namespace __gnu_cxx { namespace __ops { struct _Iter_less_iter { template constexpr bool operator()(_Iterator1 __it1, _Iterator2 __it2) const { return *__it1 < *__it2; } }; constexpr inline _Iter_less_iter __iter_less_iter() { return _Iter_less_iter(); } struct _Iter_less_val { constexpr _Iter_less_val() = default; constexpr explicit _Iter_less_val(_Iter_less_iter) { } template constexpr bool operator()(_Iterator __it, _Value& __val) const { return *__it < __val; } }; constexpr inline _Iter_less_val __iter_less_val() { return _Iter_less_val(); } constexpr inline _Iter_less_val __iter_comp_val(_Iter_less_iter) { return _Iter_less_val(); } struct _Val_less_iter { constexpr _Val_less_iter() = default; constexpr explicit _Val_less_iter(_Iter_less_iter) { } template constexpr bool operator()(_Value& __val, _Iterator __it) const { return __val < *__it; } }; constexpr inline _Val_less_iter __val_less_iter() { return _Val_less_iter(); } constexpr inline _Val_less_iter __val_comp_iter(_Iter_less_iter) { return _Val_less_iter(); } struct _Iter_equal_to_iter { template constexpr bool operator()(_Iterator1 __it1, _Iterator2 __it2) const { return *__it1 == *__it2; } }; constexpr inline _Iter_equal_to_iter __iter_equal_to_iter() { return _Iter_equal_to_iter(); } struct _Iter_equal_to_val { template constexpr bool operator()(_Iterator __it, _Value& __val) const { return *__it == __val; } }; constexpr inline _Iter_equal_to_val __iter_equal_to_val() { return _Iter_equal_to_val(); } constexpr inline _Iter_equal_to_val __iter_comp_val(_Iter_equal_to_iter) { return _Iter_equal_to_val(); } template struct _Iter_comp_iter { _Compare _M_comp; explicit constexpr _Iter_comp_iter(_Compare __comp) : _M_comp(std::move(__comp)) { } template constexpr bool operator()(_Iterator1 __it1, _Iterator2 __it2) { return bool(_M_comp(*__it1, *__it2)); } }; template constexpr inline _Iter_comp_iter<_Compare> __iter_comp_iter(_Compare __comp) { return _Iter_comp_iter<_Compare>(std::move(__comp)); } template struct _Iter_comp_val { _Compare _M_comp; constexpr explicit _Iter_comp_val(_Compare __comp) : _M_comp(std::move(__comp)) { } constexpr explicit _Iter_comp_val(const _Iter_comp_iter<_Compare>& __comp) : _M_comp(__comp._M_comp) { } constexpr explicit _Iter_comp_val(_Iter_comp_iter<_Compare>&& __comp) : _M_comp(std::move(__comp._M_comp)) { } template constexpr bool operator()(_Iterator __it, _Value& __val) { return bool(_M_comp(*__it, __val)); } }; template constexpr inline _Iter_comp_val<_Compare> __iter_comp_val(_Compare __comp) { return _Iter_comp_val<_Compare>(std::move(__comp)); } template constexpr inline _Iter_comp_val<_Compare> __iter_comp_val(_Iter_comp_iter<_Compare> __comp) { return _Iter_comp_val<_Compare>(std::move(__comp)); } template struct _Val_comp_iter { _Compare _M_comp; constexpr explicit _Val_comp_iter(_Compare __comp) : _M_comp(std::move(__comp)) { } constexpr explicit _Val_comp_iter(const _Iter_comp_iter<_Compare>& __comp) : _M_comp(__comp._M_comp) { } constexpr explicit _Val_comp_iter(_Iter_comp_iter<_Compare>&& __comp) : _M_comp(std::move(__comp._M_comp)) { } template constexpr bool operator()(_Value& __val, _Iterator __it) { return bool(_M_comp(__val, *__it)); } }; template constexpr inline _Val_comp_iter<_Compare> __val_comp_iter(_Compare __comp) { return _Val_comp_iter<_Compare>(std::move(__comp)); } template constexpr inline _Val_comp_iter<_Compare> __val_comp_iter(_Iter_comp_iter<_Compare> __comp) { return _Val_comp_iter<_Compare>(std::move(__comp)); } template struct _Iter_equals_val { _Value& _M_value; constexpr explicit _Iter_equals_val(_Value& __value) : _M_value(__value) { } template constexpr bool operator()(_Iterator __it) { return *__it == _M_value; } }; template constexpr inline _Iter_equals_val<_Value> __iter_equals_val(_Value& __val) { return _Iter_equals_val<_Value>(__val); } template struct _Iter_equals_iter { _Iterator1 _M_it1; constexpr explicit _Iter_equals_iter(_Iterator1 __it1) : _M_it1(__it1) { } template constexpr bool operator()(_Iterator2 __it2) { return *__it2 == *_M_it1; } }; template constexpr inline _Iter_equals_iter<_Iterator> __iter_comp_iter(_Iter_equal_to_iter, _Iterator __it) { return _Iter_equals_iter<_Iterator>(__it); } template struct _Iter_pred { _Predicate _M_pred; constexpr explicit _Iter_pred(_Predicate __pred) : _M_pred(std::move(__pred)) { } template constexpr bool operator()(_Iterator __it) { return bool(_M_pred(*__it)); } }; template constexpr inline _Iter_pred<_Predicate> __pred_iter(_Predicate __pred) { return _Iter_pred<_Predicate>(std::move(__pred)); } template struct _Iter_comp_to_val { _Compare _M_comp; _Value& _M_value; constexpr _Iter_comp_to_val(_Compare __comp, _Value& __value) : _M_comp(std::move(__comp)), _M_value(__value) { } template constexpr bool operator()(_Iterator __it) { return bool(_M_comp(*__it, _M_value)); } }; template _Iter_comp_to_val<_Compare, _Value> constexpr __iter_comp_val(_Compare __comp, _Value &__val) { return _Iter_comp_to_val<_Compare, _Value>(std::move(__comp), __val); } template struct _Iter_comp_to_iter { _Compare _M_comp; _Iterator1 _M_it1; constexpr _Iter_comp_to_iter(_Compare __comp, _Iterator1 __it1) : _M_comp(std::move(__comp)), _M_it1(__it1) { } template constexpr bool operator()(_Iterator2 __it2) { return bool(_M_comp(*__it2, *_M_it1)); } }; template constexpr inline _Iter_comp_to_iter<_Compare, _Iterator> __iter_comp_iter(_Iter_comp_iter<_Compare> __comp, _Iterator __it) { return _Iter_comp_to_iter<_Compare, _Iterator>( std::move(__comp._M_comp), __it); } template struct _Iter_negate { _Predicate _M_pred; constexpr explicit _Iter_negate(_Predicate __pred) : _M_pred(std::move(__pred)) { } template constexpr bool operator()(_Iterator __it) { return !bool(_M_pred(*__it)); } }; template constexpr inline _Iter_negate<_Predicate> __negate(_Iter_pred<_Predicate> __pred) { return _Iter_negate<_Predicate>(std::move(__pred._M_pred)); } } } # 72 "/usr/include/c++/15/bits/stl_algobase.h" 2 3 # 1 "/usr/include/c++/15/bit" 1 3 # 63 "/usr/include/c++/15/bit" 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 64 "/usr/include/c++/15/bit" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 87 "/usr/include/c++/15/bit" 3 template [[nodiscard]] constexpr _To bit_cast(const _From& __from) noexcept requires (sizeof(_To) == sizeof(_From)) && is_trivially_copyable_v<_To> && is_trivially_copyable_v<_From> { return __builtin_bit_cast(_To, __from); } # 109 "/usr/include/c++/15/bit" 3 template [[nodiscard]] constexpr _Tp byteswap(_Tp __value) noexcept { if constexpr (sizeof(_Tp) == 1) return __value; if !consteval { if constexpr (sizeof(_Tp) == 2) return __builtin_bswap16(__value); if constexpr (sizeof(_Tp) == 4) return __builtin_bswap32(__value); if constexpr (sizeof(_Tp) == 8) return __builtin_bswap64(__value); if constexpr (sizeof(_Tp) == 16) return __builtin_bswap128(__value); } using _Up = typename __make_unsigned<__remove_cv_t<_Tp>>::__type; size_t __diff = 8 * (sizeof(_Tp) - 1); _Up __mask1 = static_cast(~0); _Up __mask2 = __mask1 << __diff; _Up __val = __value; for (size_t __i = 0; __i < sizeof(_Tp) / 2; ++__i) { _Up __byte1 = __val & __mask1; _Up __byte2 = __val & __mask2; __val = (__val ^ __byte1 ^ __byte2 ^ (__byte1 << __diff) ^ (__byte2 >> __diff)); __mask1 <<= 8; __mask2 >>= 8; __diff -= 2 * 8; } return __val; } template constexpr _Tp __rotl(_Tp __x, int __s) noexcept { constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; if constexpr ((_Nd & (_Nd - 1)) == 0) { constexpr unsigned __uNd = _Nd; const unsigned __r = __s; return (__x << (__r % __uNd)) | (__x >> ((-__r) % __uNd)); } const int __r = __s % _Nd; if (__r == 0) return __x; else if (__r > 0) return (__x << __r) | (__x >> ((_Nd - __r) % _Nd)); else return (__x >> -__r) | (__x << ((_Nd + __r) % _Nd)); } template constexpr _Tp __rotr(_Tp __x, int __s) noexcept { constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; if constexpr ((_Nd & (_Nd - 1)) == 0) { constexpr unsigned __uNd = _Nd; const unsigned __r = __s; return (__x >> (__r % __uNd)) | (__x << ((-__r) % __uNd)); } const int __r = __s % _Nd; if (__r == 0) return __x; else if (__r > 0) return (__x >> __r) | (__x << ((_Nd - __r) % _Nd)); else return (__x << -__r) | (__x >> ((_Nd + __r) % _Nd)); } template constexpr int __countl_zero(_Tp __x) noexcept { using __gnu_cxx::__int_traits; constexpr auto _Nd = __int_traits<_Tp>::__digits; return __builtin_clzg(__x, _Nd); # 249 "/usr/include/c++/15/bit" 3 } template constexpr int __countl_one(_Tp __x) noexcept { return std::__countl_zero<_Tp>((_Tp)~__x); } template constexpr int __countr_zero(_Tp __x) noexcept { using __gnu_cxx::__int_traits; constexpr auto _Nd = __int_traits<_Tp>::__digits; return __builtin_ctzg(__x, _Nd); # 294 "/usr/include/c++/15/bit" 3 } template constexpr int __countr_one(_Tp __x) noexcept { return std::__countr_zero((_Tp)~__x); } template constexpr int __popcount(_Tp __x) noexcept { return __builtin_popcountg(__x); # 334 "/usr/include/c++/15/bit" 3 } template constexpr bool __has_single_bit(_Tp __x) noexcept { return std::__popcount(__x) == 1; } template constexpr _Tp __bit_ceil(_Tp __x) noexcept { using __gnu_cxx::__int_traits; constexpr auto _Nd = __int_traits<_Tp>::__digits; if (__x == 0 || __x == 1) return 1; auto __shift_exponent = _Nd - std::__countl_zero((_Tp)(__x - 1u)); if (!std::__is_constant_evaluated()) { do { if (std::__is_constant_evaluated() && !bool(__shift_exponent != __int_traits<_Tp>::__digits)) std::__glibcxx_assert_fail(); } while (false); } using __promoted_type = decltype(__x << 1); if constexpr (!is_same<__promoted_type, _Tp>::value) { const int __extra_exp = sizeof(__promoted_type) / sizeof(_Tp) / 2; __shift_exponent |= (__shift_exponent & _Nd) << __extra_exp; } return (_Tp)1u << __shift_exponent; } template constexpr _Tp __bit_floor(_Tp __x) noexcept { constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; if (__x == 0) return 0; return (_Tp)1u << (_Nd - std::__countl_zero((_Tp)(__x >> 1))); } template constexpr int __bit_width(_Tp __x) noexcept { constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; return _Nd - std::__countl_zero(__x); } template concept __unsigned_integer = __is_unsigned_integer<_Tp>::value; template<__unsigned_integer _Tp> [[nodiscard]] constexpr _Tp rotl(_Tp __x, int __s) noexcept { return std::__rotl(__x, __s); } template<__unsigned_integer _Tp> [[nodiscard]] constexpr _Tp rotr(_Tp __x, int __s) noexcept { return std::__rotr(__x, __s); } template<__unsigned_integer _Tp> constexpr int countl_zero(_Tp __x) noexcept { return std::__countl_zero(__x); } template<__unsigned_integer _Tp> constexpr int countl_one(_Tp __x) noexcept { return std::__countl_one(__x); } template<__unsigned_integer _Tp> constexpr int countr_zero(_Tp __x) noexcept { return std::__countr_zero(__x); } template<__unsigned_integer _Tp> constexpr int countr_one(_Tp __x) noexcept { return std::__countr_one(__x); } template<__unsigned_integer _Tp> constexpr int popcount(_Tp __x) noexcept { return std::__popcount(__x); } template<__unsigned_integer _Tp> constexpr bool has_single_bit(_Tp __x) noexcept { return std::__has_single_bit(__x); } template<__unsigned_integer _Tp> constexpr _Tp bit_ceil(_Tp __x) noexcept { return std::__bit_ceil(__x); } template<__unsigned_integer _Tp> constexpr _Tp bit_floor(_Tp __x) noexcept { return std::__bit_floor(__x); } template<__unsigned_integer _Tp> constexpr int bit_width(_Tp __x) noexcept { return std::__bit_width(__x); } # 486 "/usr/include/c++/15/bit" 3 enum class endian { little = 1234, big = 4321, native = 1234 }; } # 77 "/usr/include/c++/15/bits/stl_algobase.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template constexpr inline int __memcmp(const _Tp* __first1, const _Up* __first2, size_t __num) { static_assert(sizeof(_Tp) == sizeof(_Up), "can be compared with memcmp"); if (std::is_constant_evaluated()) { for(; __num > 0; ++__first1, ++__first2, --__num) if (*__first1 != *__first2) return *__first1 < *__first2 ? -1 : 1; return 0; } else return __builtin_memcmp(__first1, __first2, sizeof(_Tp) * __num); } # 153 "/usr/include/c++/15/bits/stl_algobase.h" 3 template constexpr inline void iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) { # 186 "/usr/include/c++/15/bits/stl_algobase.h" 3 swap(*__a, *__b); } # 202 "/usr/include/c++/15/bits/stl_algobase.h" 3 template constexpr _ForwardIterator2 swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2) { ; for (; __first1 != __last1; ++__first1, (void)++__first2) std::iter_swap(__first1, __first2); return __first2; } # 231 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[__nodiscard__]] constexpr inline const _Tp& min(const _Tp& __a, const _Tp& __b) { if (__b < __a) return __b; return __a; } # 255 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[__nodiscard__]] constexpr inline const _Tp& max(const _Tp& __a, const _Tp& __b) { if (__a < __b) return __b; return __a; } # 279 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[__nodiscard__]] constexpr inline const _Tp& min(const _Tp& __a, const _Tp& __b, _Compare __comp) { if (__comp(__b, __a)) return __b; return __a; } # 301 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[__nodiscard__]] constexpr inline const _Tp& max(const _Tp& __a, const _Tp& __b, _Compare __comp) { if (__comp(__a, __b)) return __b; return __a; } template struct _Deque_iterator; struct _Bit_iterator; template struct char_traits; template class istreambuf_iterator; template class ostreambuf_iterator; template typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type __copy_move_a2(_CharT*, _CharT*, ostreambuf_iterator<_CharT, char_traits<_CharT> >); template typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type __copy_move_a2(const _CharT*, const _CharT*, ostreambuf_iterator<_CharT, char_traits<_CharT> >); template typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, _CharT*>::__type __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); template typename __gnu_cxx::__enable_if< __is_char<_CharT>::__value, std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type __copy_move_a2( istreambuf_iterator<_CharT, char_traits<_CharT> >, istreambuf_iterator<_CharT, char_traits<_CharT> >, std::_Deque_iterator<_CharT, _CharT&, _CharT*>); template concept __memcpyable_iterators = contiguous_iterator<_OutIter> && contiguous_iterator<_InIter> && sized_sentinel_for<_Sent, _InIter> && requires (_OutIter __o, _InIter __i) { requires !!__memcpyable::__value; }; # 395 "/usr/include/c++/15/bits/stl_algobase.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++17-extensions" template __attribute__((__always_inline__)) constexpr inline void __assign_one(_OutIter& __out, _InIter& __in) { if constexpr (_IsMove) *__out = std::move(*__in); else *__out = *__in; } template constexpr inline _OutIter __copy_move_a2(_InIter __first, _Sent __last, _OutIter __result) { typedef __decltype(*__first) _InRef; typedef __decltype(*__result) _OutRef; if constexpr (!__is_trivially_assignable(_OutRef, _InRef)) { } else if (std::__is_constant_evaluated()) { } else if constexpr (__memcpyable<_OutIter, _InIter>::__value) { ptrdiff_t __n = std::distance(__first, __last); if (__builtin_expect(__n > 1, true)) { __builtin_memmove(__result, __first, __n * sizeof(*__first)); __result += __n; } else if (__n == 1) { std::__assign_one<_IsMove>(__result, __first); ++__result; } return __result; } else if constexpr (__memcpyable_iterators<_OutIter, _InIter, _Sent>) { if (auto __n = __last - __first; __n > 1) [[likely]] { void* __dest = std::to_address(__result); const void* __src = std::to_address(__first); size_t __nbytes = __n * sizeof(iter_value_t<_InIter>); (void) std::to_address(__result += __n); (void) std::to_address(__first += __n); __builtin_memmove(__dest, __src, __nbytes); } else if (__n == 1) { std::__assign_one<_IsMove>(__result, __first); ++__result; } return __result; } for (; __first != __last; ++__result, (void)++__first) std::__assign_one<_IsMove>(__result, __first); return __result; } #pragma GCC diagnostic pop template _OI __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, std::_Deque_iterator<_Tp, _Ref, _Ptr>, _OI); template std::_Deque_iterator<_OTp, _OTp&, _OTp*> __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr>, std::_Deque_iterator<_ITp, _IRef, _IPtr>, std::_Deque_iterator<_OTp, _OTp&, _OTp*>); template typename __gnu_cxx::__enable_if< __is_random_access_iter<_II>::__value, std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type __copy_move_a1(_II, _II, std::_Deque_iterator<_Tp, _Tp&, _Tp*>); template __attribute__((__always_inline__)) constexpr inline _OI __copy_move_a1(_II __first, _II __last, _OI __result) { return std::__copy_move_a2<_IsMove>(__first, __last, __result); } template __attribute__((__always_inline__)) constexpr inline _OI __copy_move_a(_II __first, _II __last, _OI __result) { return std::__niter_wrap(__result, std::__copy_move_a1<_IsMove>(std::__niter_base(__first), std::__niter_base(__last), std::__niter_base(__result))); } template constexpr _OI __copy_move_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, _OI); template constexpr __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> __copy_move_a(_II, _II, const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); template constexpr ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> __copy_move_a(const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++17-extensions" template constexpr _OutputIterator __copy_n_a(_InputIterator __first, _Size __n, _OutputIterator __result, bool) { typedef __decltype(*__first) _InRef; typedef __decltype(*__result) _OutRef; if constexpr (!__is_trivially_assignable(_OutRef, _InRef)) { } else if (std::is_constant_evaluated()) { } else if constexpr (__memcpyable<_OutputIterator, _InputIterator>::__value) { if (__builtin_expect(__n > 1, true)) { __builtin_memmove(__result, __first, __n * sizeof(*__first)); __result += __n; } else if (__n == 1) *__result++ = *__first; return __result; } else if constexpr (__memcpyable_iterators<_OutputIterator, _InputIterator>) { if (__n > 1) [[likely]] { void* __dest = std::to_address(__result); const void* __src = std::to_address(__first); size_t __nbytes = __n * sizeof(iter_value_t<_InputIterator>); (void) std::to_address(__result += __n); (void) std::to_address(__first += __n); __builtin_memmove(__dest, __src, __nbytes); } else if (__n == 1) *__result++ = *__first; return __result; } if (__n > 0) { while (true) { *__result = *__first; ++__result; if (--__n > 0) ++__first; else break; } } return __result; } #pragma GCC diagnostic pop template typename __gnu_cxx::__enable_if< __is_char<_CharT>::__value, _CharT*>::__type __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, _Size, _CharT*, bool); template typename __gnu_cxx::__enable_if< __is_char<_CharT>::__value, std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, _Size, std::_Deque_iterator<_CharT, _CharT&, _CharT*>, bool); # 630 "/usr/include/c++/15/bits/stl_algobase.h" 3 template constexpr inline _OI copy(_II __first, _II __last, _OI __result) { ; return std::__copy_move_a<__is_move_iterator<_II>::__value> (std::__miter_base(__first), std::__miter_base(__last), __result); } # 663 "/usr/include/c++/15/bits/stl_algobase.h" 3 template constexpr inline _OI move(_II __first, _II __last, _OI __result) { ; return std::__copy_move_a(std::__miter_base(__first), std::__miter_base(__last), __result); } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++17-extensions" template constexpr inline _BI2 __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) { typedef __decltype(*__first) _InRef; typedef __decltype(*__result) _OutRef; if constexpr (!__is_trivially_assignable(_OutRef, _InRef)) { } else if (std::is_constant_evaluated()) { } else if constexpr (__memcpyable<_BI2, _BI1>::__value) { ptrdiff_t __n = std::distance(__first, __last); std::advance(__result, -__n); if (__builtin_expect(__n > 1, true)) { __builtin_memmove(__result, __first, __n * sizeof(*__first)); } else if (__n == 1) std::__assign_one<_IsMove>(__result, __first); return __result; } else if constexpr (__memcpyable_iterators<_BI2, _BI1>) { if (auto __n = __last - __first; __n > 1) [[likely]] { const void* __src = std::to_address(__first); (void) std::to_address(__result -= __n); (void) std::to_address(__first += __n); void* __dest = std::to_address(__result); size_t __nbytes = __n * sizeof(iter_value_t<_BI1>); __builtin_memmove(__dest, __src, __nbytes); } else if (__n == 1) { --__result; std::__assign_one<_IsMove>(__result, __first); } return __result; } while (__first != __last) { --__last; --__result; std::__assign_one<_IsMove>(__result, __last); } return __result; } #pragma GCC diagnostic pop template __attribute__((__always_inline__)) constexpr inline _BI2 __copy_move_backward_a1(_BI1 __first, _BI1 __last, _BI2 __result) { return std::__copy_move_backward_a2<_IsMove>(__first, __last, __result); } template _OI __copy_move_backward_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, std::_Deque_iterator<_Tp, _Ref, _Ptr>, _OI); template std::_Deque_iterator<_OTp, _OTp&, _OTp*> __copy_move_backward_a1( std::_Deque_iterator<_ITp, _IRef, _IPtr>, std::_Deque_iterator<_ITp, _IRef, _IPtr>, std::_Deque_iterator<_OTp, _OTp&, _OTp*>); template typename __gnu_cxx::__enable_if< __is_random_access_iter<_II>::__value, std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type __copy_move_backward_a1(_II, _II, std::_Deque_iterator<_Tp, _Tp&, _Tp*>); template __attribute__((__always_inline__)) constexpr inline _OI __copy_move_backward_a(_II __first, _II __last, _OI __result) { return std::__niter_wrap(__result, std::__copy_move_backward_a1<_IsMove> (std::__niter_base(__first), std::__niter_base(__last), std::__niter_base(__result))); } template constexpr _OI __copy_move_backward_a( const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, _OI); template constexpr __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> __copy_move_backward_a(_II, _II, const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); template constexpr ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> __copy_move_backward_a( const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); # 833 "/usr/include/c++/15/bits/stl_algobase.h" 3 template __attribute__((__always_inline__)) constexpr inline _BI2 copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) { ; return std::__copy_move_backward_a<__is_move_iterator<_BI1>::__value> (std::__miter_base(__first), std::__miter_base(__last), __result); } # 869 "/usr/include/c++/15/bits/stl_algobase.h" 3 template __attribute__((__always_inline__)) constexpr inline _BI2 move_backward(_BI1 __first, _BI1 __last, _BI2 __result) { ; return std::__copy_move_backward_a(std::__miter_base(__first), std::__miter_base(__last), __result); } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++17-extensions" template constexpr inline void __fill_a1(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wlong-long" const bool __load_outside_loop = __is_trivially_constructible(_Tp, const _Tp&) && __is_trivially_assignable(__decltype(*__first), const _Tp&) && sizeof(_Tp) <= sizeof(long long); #pragma GCC diagnostic pop typedef typename __gnu_cxx::__conditional_type<__load_outside_loop, const _Tp, const _Tp&>::__type _Up; _Up __val(__value); for (; __first != __last; ++__first) *__first = __val; } #pragma GCC diagnostic pop template constexpr inline typename __gnu_cxx::__enable_if<__is_byte<_Up>::__value && (__are_same<_Up, _Tp>::__value || __memcpyable_integer<_Tp>::__width), void>::__type __fill_a1(_Up* __first, _Up* __last, const _Tp& __x) { const _Up __val = __x; if (std::is_constant_evaluated()) { for (; __first != __last; ++__first) *__first = __val; return; } if (const size_t __len = __last - __first) __builtin_memset(__first, static_cast(__val), __len); } template __attribute__((__always_inline__)) constexpr inline void __fill_a1(::__gnu_cxx::__normal_iterator<_Ite, _Cont> __first, ::__gnu_cxx::__normal_iterator<_Ite, _Cont> __last, const _Tp& __value) { std::__fill_a1(__first.base(), __last.base(), __value); } template void __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, const _VTp&); constexpr void __fill_a1(std::_Bit_iterator, std::_Bit_iterator, const bool&); template __attribute__((__always_inline__)) constexpr inline void __fill_a(_FIte __first, _FIte __last, const _Tp& __value) { std::__fill_a1(__first, __last, __value); } template constexpr void __fill_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, const _Tp&); # 1000 "/usr/include/c++/15/bits/stl_algobase.h" 3 template __attribute__((__always_inline__)) constexpr inline void fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) { ; std::__fill_a(__first, __last, __value); } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wlong-long" inline constexpr int __size_to_integer(int __n) { return __n; } inline constexpr unsigned __size_to_integer(unsigned __n) { return __n; } inline constexpr long __size_to_integer(long __n) { return __n; } inline constexpr unsigned long __size_to_integer(unsigned long __n) { return __n; } inline constexpr long long __size_to_integer(long long __n) { return __n; } inline constexpr unsigned long long __size_to_integer(unsigned long long __n) { return __n; } __extension__ inline constexpr __int128 __size_to_integer(__int128 __n) { return __n; } __extension__ inline constexpr unsigned __int128 __size_to_integer(unsigned __int128 __n) { return __n; } # 1055 "/usr/include/c++/15/bits/stl_algobase.h" 3 inline constexpr long long __size_to_integer(float __n) { return (long long)__n; } inline constexpr long long __size_to_integer(double __n) { return (long long)__n; } inline constexpr long long __size_to_integer(long double __n) { return (long long)__n; } __extension__ inline constexpr long long __size_to_integer(__float128 __n) { return (long long)__n; } #pragma GCC diagnostic pop #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++17-extensions" #pragma GCC diagnostic ignored "-Wlong-long" template constexpr inline _OutputIterator __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) { const bool __load_outside_loop = __is_trivially_constructible(_Tp, const _Tp&) && __is_trivially_assignable(__decltype(*__first), const _Tp&) && sizeof(_Tp) <= sizeof(long long); typedef typename __gnu_cxx::__conditional_type<__load_outside_loop, const _Tp, const _Tp&>::__type _Up; _Up __val(__value); for (; __n > 0; --__n, (void) ++__first) *__first = __val; return __first; } #pragma GCC diagnostic pop template constexpr ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> __fill_n_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>& __first, _Size __n, const _Tp& __value, std::input_iterator_tag); template __attribute__((__always_inline__)) constexpr inline _OutputIterator __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, std::output_iterator_tag) { static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); return __fill_n_a1(__first, __n, __value); } template __attribute__((__always_inline__)) constexpr inline _OutputIterator __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, std::input_iterator_tag) { static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); return __fill_n_a1(__first, __n, __value); } template __attribute__((__always_inline__)) constexpr inline _OutputIterator __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, std::random_access_iterator_tag) { static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); if (__n <= 0) return __first; ; std::__fill_a(__first, __first + __n, __value); return __first + __n; } # 1169 "/usr/include/c++/15/bits/stl_algobase.h" 3 template __attribute__((__always_inline__)) constexpr inline _OI fill_n(_OI __first, _Size __n, const _Tp& __value) { return std::__fill_n_a(__first, std::__size_to_integer(__n), __value, std::__iterator_category(__first)); } template struct __equal { template constexpr static bool equal(_II1 __first1, _II1 __last1, _II2 __first2) { for (; __first1 != __last1; ++__first1, (void) ++__first2) if (!(*__first1 == *__first2)) return false; return true; } }; template<> struct __equal { template constexpr static bool equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) { if (const size_t __len = (__last1 - __first1)) return !std::__memcmp(__first1, __first2, __len); return true; } }; template typename __gnu_cxx::__enable_if< __is_random_access_iter<_II>::__value, bool>::__type __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, std::_Deque_iterator<_Tp, _Ref, _Ptr>, _II); template bool __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); template typename __gnu_cxx::__enable_if< __is_random_access_iter<_II>::__value, bool>::__type __equal_aux1(_II, _II, std::_Deque_iterator<_Tp, _Ref, _Ptr>); template constexpr inline bool __equal_aux1(_II1 __first1, _II1 __last1, _II2 __first2) { typedef typename iterator_traits<_II1>::value_type _ValueType1; const bool __simple = ((__is_integer<_ValueType1>::__value || __is_pointer(_ValueType1) || is_same_v<_ValueType1, byte> ) && __memcmpable<_II1, _II2>::__value); return std::__equal<__simple>::equal(__first1, __last1, __first2); } template __attribute__((__always_inline__)) constexpr inline bool __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) { return std::__equal_aux1(std::__niter_base(__first1), std::__niter_base(__last1), std::__niter_base(__first2)); } template constexpr bool __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, _II2); template constexpr bool __equal_aux(_II1, _II1, const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); template constexpr bool __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); template struct __lc_rai { template constexpr static _II1 __newlast1(_II1, _II1 __last1, _II2, _II2) { return __last1; } template constexpr static bool __cnd2(_II __first, _II __last) { return __first != __last; } }; template<> struct __lc_rai { template constexpr static _RAI1 __newlast1(_RAI1 __first1, _RAI1 __last1, _RAI2 __first2, _RAI2 __last2) { const typename iterator_traits<_RAI1>::difference_type __diff1 = __last1 - __first1; const typename iterator_traits<_RAI2>::difference_type __diff2 = __last2 - __first2; return __diff2 < __diff1 ? __first1 + __diff2 : __last1; } template static constexpr bool __cnd2(_RAI, _RAI) { return true; } }; template constexpr bool __lexicographical_compare_impl(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, _Compare __comp) { typedef typename iterator_traits<_II1>::iterator_category _Category1; typedef typename iterator_traits<_II2>::iterator_category _Category2; typedef std::__lc_rai<_Category1, _Category2> __rai_type; __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); ++__first1, (void)++__first2) { if (__comp(__first1, __first2)) return true; if (__comp(__first2, __first1)) return false; } return __first1 == __last1 && __first2 != __last2; } template struct __lexicographical_compare { template constexpr static bool __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { using __gnu_cxx::__ops::__iter_less_iter; return std::__lexicographical_compare_impl(__first1, __last1, __first2, __last2, __iter_less_iter()); } template constexpr static int __3way(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { while (__first1 != __last1) { if (__first2 == __last2) return +1; if (*__first1 < *__first2) return -1; if (*__first2 < *__first1) return +1; ++__first1; ++__first2; } return int(__first2 == __last2) - 1; } }; template<> struct __lexicographical_compare { template constexpr static bool __lc(const _Tp* __first1, const _Tp* __last1, const _Up* __first2, const _Up* __last2) { return __3way(__first1, __last1, __first2, __last2) < 0; } template constexpr static ptrdiff_t __3way(const _Tp* __first1, const _Tp* __last1, const _Up* __first2, const _Up* __last2) { const size_t __len1 = __last1 - __first1; const size_t __len2 = __last2 - __first2; if (const size_t __len = std::min(__len1, __len2)) if (int __result = std::__memcmp(__first1, __first2, __len)) return __result; return ptrdiff_t(__len1 - __len2); } }; template constexpr inline bool __lexicographical_compare_aux1(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { typedef typename iterator_traits<_II1>::value_type _ValueType1; typedef typename iterator_traits<_II2>::value_type _ValueType2; const bool __simple = (__is_memcmp_ordered_with<_ValueType1, _ValueType2>::__value && __is_pointer(_II1) && __is_pointer(_II2) && !is_volatile_v>> && !is_volatile_v>> ); return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, __first2, __last2); } template bool __lexicographical_compare_aux1( std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, _Tp2*, _Tp2*); template bool __lexicographical_compare_aux1(_Tp1*, _Tp1*, std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); template bool __lexicographical_compare_aux1( std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); template constexpr inline bool __lexicographical_compare_aux(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { return std::__lexicographical_compare_aux1(std::__niter_base(__first1), std::__niter_base(__last1), std::__niter_base(__first2), std::__niter_base(__last2)); } template constexpr bool __lexicographical_compare_aux( const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, _II2, _II2); template constexpr bool __lexicographical_compare_aux( _II1, _II1, const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); template constexpr bool __lexicographical_compare_aux( const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); template constexpr _ForwardIterator __lower_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _Compare __comp) { typedef typename iterator_traits<_ForwardIterator>::difference_type _DistanceType; _DistanceType __len = std::distance(__first, __last); while (__len > 0) { _DistanceType __half = __len >> 1; _ForwardIterator __middle = __first; std::advance(__middle, __half); if (__comp(__middle, __val)) { __first = __middle; ++__first; __len = __len - __half - 1; } else __len = __half; } return __first; } # 1532 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[__nodiscard__]] constexpr inline _ForwardIterator lower_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val) { ; return std::__lower_bound(__first, __last, __val, __gnu_cxx::__ops::__iter_less_val()); } template inline constexpr _Tp __lg(_Tp __n) { return std::__bit_width(make_unsigned_t<_Tp>(__n)) - 1; # 1568 "/usr/include/c++/15/bits/stl_algobase.h" 3 } # 1584 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[__nodiscard__]] constexpr inline bool equal(_II1 __first1, _II1 __last1, _II2 __first2) { ; return std::__equal_aux(__first1, __last1, __first2); } # 1615 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[__nodiscard__]] constexpr inline bool equal(_IIter1 __first1, _IIter1 __last1, _IIter2 __first2, _BinaryPredicate __binary_pred) { ; for (; __first1 != __last1; ++__first1, (void)++__first2) if (!bool(__binary_pred(*__first1, *__first2))) return false; return true; } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++17-extensions" template constexpr inline bool __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { using _RATag = random_access_iterator_tag; using _Cat1 = typename iterator_traits<_II1>::iterator_category; using _Cat2 = typename iterator_traits<_II2>::iterator_category; using _RAIters = __and_, is_same<_Cat2, _RATag>>; if constexpr (_RAIters::value) { if ((__last1 - __first1) != (__last2 - __first2)) return false; return std::equal(__first1, __last1, __first2); } else { for (; __first1 != __last1 && __first2 != __last2; ++__first1, (void)++__first2) if (!(*__first1 == *__first2)) return false; return __first1 == __last1 && __first2 == __last2; } } template constexpr inline bool __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, _BinaryPredicate __binary_pred) { using _RATag = random_access_iterator_tag; using _Cat1 = typename iterator_traits<_II1>::iterator_category; using _Cat2 = typename iterator_traits<_II2>::iterator_category; using _RAIters = __and_, is_same<_Cat2, _RATag>>; if constexpr (_RAIters::value) { if ((__last1 - __first1) != (__last2 - __first2)) return false; return std::equal(__first1, __last1, __first2, __binary_pred); } else { for (; __first1 != __last1 && __first2 != __last2; ++__first1, (void)++__first2) if (!bool(__binary_pred(*__first1, *__first2))) return false; return __first1 == __last1 && __first2 == __last2; } } #pragma GCC diagnostic pop # 1706 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[__nodiscard__]] constexpr inline bool equal(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { ; ; return std::__equal4(__first1, __last1, __first2, __last2); } # 1739 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[__nodiscard__]] constexpr inline bool equal(_IIter1 __first1, _IIter1 __last1, _IIter2 __first2, _IIter2 __last2, _BinaryPredicate __binary_pred) { ; ; return std::__equal4(__first1, __last1, __first2, __last2, __binary_pred); } # 1771 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[__nodiscard__]] constexpr inline bool lexicographical_compare(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { ; ; return std::__lexicographical_compare_aux(__first1, __last1, __first2, __last2); } # 1806 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[__nodiscard__]] constexpr inline bool lexicographical_compare(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, _Compare __comp) { ; ; return std::__lexicographical_compare_impl (__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template concept __memcmp_ordered_with = (__is_memcmp_ordered_with, iter_value_t<_Iter2>>::__value) && contiguous_iterator<_Iter1> && contiguous_iterator<_Iter2>; template constexpr auto __min_cmp(_Tp __x, _Tp __y) { struct _Res { _Tp _M_min; decltype(__x <=> __y) _M_cmp; }; auto __c = __x <=> __y; if (__c > 0) return _Res{__y, __c}; return _Res{__x, __c}; } # 1860 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[nodiscard]] constexpr auto lexicographical_compare_three_way(_InputIter1 __first1, _InputIter1 __last1, _InputIter2 __first2, _InputIter2 __last2, _Comp __comp) -> decltype(__comp(*__first1, *__first2)) { ; ; using _Cat = decltype(__comp(*__first1, *__first2)); static_assert(same_as, _Cat>); if (!std::__is_constant_evaluated()) if constexpr (same_as<_Comp, __detail::_Synth3way> || same_as<_Comp, compare_three_way>) if constexpr (__memcmp_ordered_with<_InputIter1, _InputIter2>) { const auto [__len, __lencmp] = std:: __min_cmp(__last1 - __first1, __last2 - __first2); if (__len) { const auto __blen = __len * sizeof(*__first1); const auto __c = __builtin_memcmp(&*__first1, &*__first2, __blen) <=> 0; if (__c != 0) return __c; } return __lencmp; } while (__first1 != __last1) { if (__first2 == __last2) return strong_ordering::greater; if (auto __cmp = __comp(*__first1, *__first2); __cmp != 0) return __cmp; ++__first1; ++__first2; } return (__first2 == __last2) <=> true; } template constexpr auto lexicographical_compare_three_way(_InputIter1 __first1, _InputIter1 __last1, _InputIter2 __first2, _InputIter2 __last2) { return std:: lexicographical_compare_three_way(__first1, __last1, __first2, __last2, compare_three_way{}); } template constexpr pair<_InputIterator1, _InputIterator2> __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _BinaryPredicate __binary_pred) { while (__first1 != __last1 && __binary_pred(__first1, __first2)) { ++__first1; ++__first2; } return pair<_InputIterator1, _InputIterator2>(__first1, __first2); } # 1949 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[__nodiscard__]] constexpr inline pair<_InputIterator1, _InputIterator2> mismatch(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2) { ; return std::__mismatch(__first1, __last1, __first2, __gnu_cxx::__ops::__iter_equal_to_iter()); } # 1983 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[__nodiscard__]] constexpr inline pair<_InputIterator1, _InputIterator2> mismatch(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _BinaryPredicate __binary_pred) { ; return std::__mismatch(__first1, __last1, __first2, __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); } template constexpr pair<_InputIterator1, _InputIterator2> __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _BinaryPredicate __binary_pred) { while (__first1 != __last1 && __first2 != __last2 && __binary_pred(__first1, __first2)) { ++__first1; ++__first2; } return pair<_InputIterator1, _InputIterator2>(__first1, __first2); } # 2031 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[__nodiscard__]] constexpr inline pair<_InputIterator1, _InputIterator2> mismatch(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2) { ; ; return std::__mismatch(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_equal_to_iter()); } # 2067 "/usr/include/c++/15/bits/stl_algobase.h" 3 template [[__nodiscard__]] constexpr inline pair<_InputIterator1, _InputIterator2> mismatch(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _BinaryPredicate __binary_pred) { ; ; return std::__mismatch(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); } template constexpr inline _Iterator __find_if(_Iterator __first, _Iterator __last, _Predicate __pred) { #pragma GCC unroll 4 while (__first != __last && !__pred(__first)) ++__first; return __first; } template constexpr typename iterator_traits<_InputIterator>::difference_type __count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) { typename iterator_traits<_InputIterator>::difference_type __n = 0; for (; __first != __last; ++__first) if (__pred(__first)) ++__n; return __n; } template constexpr _ForwardIterator __remove_if(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred) { __first = std::__find_if(__first, __last, __pred); if (__first == __last) return __first; _ForwardIterator __result = __first; ++__first; for (; __first != __last; ++__first) if (!__pred(__first)) { *__result = std::move(*__first); ++__result; } return __result; } template constexpr _ForwardIterator1 __search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __predicate) { if (__first1 == __last1 || __first2 == __last2) return __first1; _ForwardIterator2 __p1(__first2); if (++__p1 == __last2) return std::__find_if(__first1, __last1, __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); _ForwardIterator1 __current = __first1; for (;;) { __first1 = std::__find_if(__first1, __last1, __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); if (__first1 == __last1) return __last1; _ForwardIterator2 __p = __p1; __current = __first1; if (++__current == __last1) return __last1; while (__predicate(__current, __p)) { if (++__p == __last2) return __first1; if (++__current == __last1) return __last1; } ++__first1; } return __first1; } template constexpr bool __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _BinaryPredicate __pred) { for (; __first1 != __last1; ++__first1, (void)++__first2) if (!__pred(__first1, __first2)) break; if (__first1 == __last1) return true; _ForwardIterator2 __last2 = __first2; std::advance(__last2, std::distance(__first1, __last1)); for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) { if (__scan != std::__find_if(__first1, __scan, __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) continue; auto __matches = std::__count_if(__first2, __last2, __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); if (0 == __matches || std::__count_if(__scan, __last1, __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) != __matches) return false; } return true; } # 2230 "/usr/include/c++/15/bits/stl_algobase.h" 3 template constexpr inline bool is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2) { ; return std::__is_permutation(__first1, __last1, __first2, __gnu_cxx::__ops::__iter_equal_to_iter()); } # 2272 "/usr/include/c++/15/bits/stl_algobase.h" 3 template constexpr inline _ForwardIterator1 search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __predicate) { ; ; return std::__search(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_comp_iter(__predicate)); } } # 44 "/usr/include/c++/15/bits/specfun.h" 2 3 # 1 "/usr/include/c++/15/tr1/gamma.tcc" 1 3 # 49 "/usr/include/c++/15/tr1/gamma.tcc" 3 # 1 "/usr/include/c++/15/tr1/special_function_util.h" 1 3 # 39 "/usr/include/c++/15/tr1/special_function_util.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 50 "/usr/include/c++/15/tr1/special_function_util.h" 3 namespace __detail { template struct __floating_point_constant { static const _Tp __value; }; template struct __numeric_constants { static _Tp __pi() throw() { return static_cast<_Tp>(3.1415926535897932384626433832795029L); } static _Tp __pi_2() throw() { return static_cast<_Tp>(1.5707963267948966192313216916397514L); } static _Tp __pi_3() throw() { return static_cast<_Tp>(1.0471975511965977461542144610931676L); } static _Tp __pi_4() throw() { return static_cast<_Tp>(0.7853981633974483096156608458198757L); } static _Tp __1_pi() throw() { return static_cast<_Tp>(0.3183098861837906715377675267450287L); } static _Tp __2_sqrtpi() throw() { return static_cast<_Tp>(1.1283791670955125738961589031215452L); } static _Tp __sqrt2() throw() { return static_cast<_Tp>(1.4142135623730950488016887242096981L); } static _Tp __sqrt3() throw() { return static_cast<_Tp>(1.7320508075688772935274463415058723L); } static _Tp __sqrtpio2() throw() { return static_cast<_Tp>(1.2533141373155002512078826424055226L); } static _Tp __sqrt1_2() throw() { return static_cast<_Tp>(0.7071067811865475244008443621048490L); } static _Tp __lnpi() throw() { return static_cast<_Tp>(1.1447298858494001741434273513530587L); } static _Tp __gamma_e() throw() { return static_cast<_Tp>(0.5772156649015328606065120900824024L); } static _Tp __euler() throw() { return static_cast<_Tp>(2.7182818284590452353602874713526625L); } }; # 114 "/usr/include/c++/15/tr1/special_function_util.h" 3 template inline bool __isnan(_Tp __x) { return std::isnan(__x); } # 133 "/usr/include/c++/15/tr1/special_function_util.h" 3 } } # 50 "/usr/include/c++/15/tr1/gamma.tcc" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 65 "/usr/include/c++/15/tr1/gamma.tcc" 3 namespace __detail { # 76 "/usr/include/c++/15/tr1/gamma.tcc" 3 template _Tp __bernoulli_series(unsigned int __n) { static const _Tp __num[28] = { _Tp(1UL), -_Tp(1UL) / _Tp(2UL), _Tp(1UL) / _Tp(6UL), _Tp(0UL), -_Tp(1UL) / _Tp(30UL), _Tp(0UL), _Tp(1UL) / _Tp(42UL), _Tp(0UL), -_Tp(1UL) / _Tp(30UL), _Tp(0UL), _Tp(5UL) / _Tp(66UL), _Tp(0UL), -_Tp(691UL) / _Tp(2730UL), _Tp(0UL), _Tp(7UL) / _Tp(6UL), _Tp(0UL), -_Tp(3617UL) / _Tp(510UL), _Tp(0UL), _Tp(43867UL) / _Tp(798UL), _Tp(0UL), -_Tp(174611) / _Tp(330UL), _Tp(0UL), _Tp(854513UL) / _Tp(138UL), _Tp(0UL), -_Tp(236364091UL) / _Tp(2730UL), _Tp(0UL), _Tp(8553103UL) / _Tp(6UL), _Tp(0UL) }; if (__n == 0) return _Tp(1); if (__n == 1) return -_Tp(1) / _Tp(2); if (__n % 2 == 1) return _Tp(0); if (__n < 28) return __num[__n]; _Tp __fact = _Tp(1); if ((__n / 2) % 2 == 0) __fact *= _Tp(-1); for (unsigned int __k = 1; __k <= __n; ++__k) __fact *= __k / (_Tp(2) * __numeric_constants<_Tp>::__pi()); __fact *= _Tp(2); _Tp __sum = _Tp(0); for (unsigned int __i = 1; __i < 1000; ++__i) { _Tp __term = std::pow(_Tp(__i), -_Tp(__n)); if (__term < std::numeric_limits<_Tp>::epsilon()) break; __sum += __term; } return __fact * __sum; } # 139 "/usr/include/c++/15/tr1/gamma.tcc" 3 template inline _Tp __bernoulli(int __n) { return __bernoulli_series<_Tp>(__n); } # 153 "/usr/include/c++/15/tr1/gamma.tcc" 3 template _Tp __log_gamma_bernoulli(_Tp __x) { _Tp __lg = (__x - _Tp(0.5L)) * std::log(__x) - __x + _Tp(0.5L) * std::log(_Tp(2) * __numeric_constants<_Tp>::__pi()); const _Tp __xx = __x * __x; _Tp __help = _Tp(1) / __x; for ( unsigned int __i = 1; __i < 20; ++__i ) { const _Tp __2i = _Tp(2 * __i); __help /= __2i * (__2i - _Tp(1)) * __xx; __lg += __bernoulli<_Tp>(2 * __i) * __help; } return __lg; } # 181 "/usr/include/c++/15/tr1/gamma.tcc" 3 template _Tp __log_gamma_lanczos(_Tp __x) { const _Tp __xm1 = __x - _Tp(1); static const _Tp __lanczos_cheb_7[9] = { _Tp( 0.99999999999980993227684700473478L), _Tp( 676.520368121885098567009190444019L), _Tp(-1259.13921672240287047156078755283L), _Tp( 771.3234287776530788486528258894L), _Tp(-176.61502916214059906584551354L), _Tp( 12.507343278686904814458936853L), _Tp(-0.13857109526572011689554707L), _Tp( 9.984369578019570859563e-6L), _Tp( 1.50563273514931155834e-7L) }; static const _Tp __LOGROOT2PI = _Tp(0.9189385332046727417803297364056176L); _Tp __sum = __lanczos_cheb_7[0]; for(unsigned int __k = 1; __k < 9; ++__k) __sum += __lanczos_cheb_7[__k] / (__xm1 + __k); const _Tp __term1 = (__xm1 + _Tp(0.5L)) * std::log((__xm1 + _Tp(7.5L)) / __numeric_constants<_Tp>::__euler()); const _Tp __term2 = __LOGROOT2PI + std::log(__sum); const _Tp __result = __term1 + (__term2 - _Tp(7)); return __result; } # 225 "/usr/include/c++/15/tr1/gamma.tcc" 3 template _Tp __log_gamma(_Tp __x) { if (__x > _Tp(0.5L)) return __log_gamma_lanczos(__x); else { const _Tp __sin_fact = std::abs(std::sin(__numeric_constants<_Tp>::__pi() * __x)); if (__sin_fact == _Tp(0)) std::__throw_domain_error(("Argument is nonpositive integer " "in __log_gamma") ); return __numeric_constants<_Tp>::__lnpi() - std::log(__sin_fact) - __log_gamma_lanczos(_Tp(1) - __x); } } # 252 "/usr/include/c++/15/tr1/gamma.tcc" 3 template _Tp __log_gamma_sign(_Tp __x) { if (__x > _Tp(0)) return _Tp(1); else { const _Tp __sin_fact = std::sin(__numeric_constants<_Tp>::__pi() * __x); if (__sin_fact > _Tp(0)) return (1); else if (__sin_fact < _Tp(0)) return -_Tp(1); else return _Tp(0); } } # 283 "/usr/include/c++/15/tr1/gamma.tcc" 3 template _Tp __log_bincoef(unsigned int __n, unsigned int __k) { static const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 * std::log(_Tp(10)) - _Tp(1); _Tp __coeff = ::std::lgamma(_Tp(1 + __n)) - ::std::lgamma(_Tp(1 + __k)) - ::std::lgamma(_Tp(1 + __n - __k)); } # 314 "/usr/include/c++/15/tr1/gamma.tcc" 3 template _Tp __bincoef(unsigned int __n, unsigned int __k) { static const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 * std::log(_Tp(10)) - _Tp(1); const _Tp __log_coeff = __log_bincoef<_Tp>(__n, __k); if (__log_coeff > __max_bincoeff) return std::numeric_limits<_Tp>::quiet_NaN(); else return std::exp(__log_coeff); } # 337 "/usr/include/c++/15/tr1/gamma.tcc" 3 template inline _Tp __gamma(_Tp __x) { return std::exp(__log_gamma(__x)); } # 356 "/usr/include/c++/15/tr1/gamma.tcc" 3 template _Tp __psi_series(_Tp __x) { _Tp __sum = -__numeric_constants<_Tp>::__gamma_e() - _Tp(1) / __x; const unsigned int __max_iter = 100000; for (unsigned int __k = 1; __k < __max_iter; ++__k) { const _Tp __term = __x / (__k * (__k + __x)); __sum += __term; if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) break; } return __sum; } # 386 "/usr/include/c++/15/tr1/gamma.tcc" 3 template _Tp __psi_asymp(_Tp __x) { _Tp __sum = std::log(__x) - _Tp(0.5L) / __x; const _Tp __xx = __x * __x; _Tp __xp = __xx; const unsigned int __max_iter = 100; for (unsigned int __k = 1; __k < __max_iter; ++__k) { const _Tp __term = __bernoulli<_Tp>(2 * __k) / (2 * __k * __xp); __sum -= __term; if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) break; __xp *= __xx; } return __sum; } # 417 "/usr/include/c++/15/tr1/gamma.tcc" 3 template _Tp __psi(_Tp __x) { const int __n = static_cast(__x + 0.5L); const _Tp __eps = _Tp(4) * std::numeric_limits<_Tp>::epsilon(); if (__n <= 0 && std::abs(__x - _Tp(__n)) < __eps) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__x < _Tp(0)) { const _Tp __pi = __numeric_constants<_Tp>::__pi(); return __psi(_Tp(1) - __x) - __pi * std::cos(__pi * __x) / std::sin(__pi * __x); } else if (__x > _Tp(100)) return __psi_asymp(__x); else return __psi_series(__x); } # 446 "/usr/include/c++/15/tr1/gamma.tcc" 3 template _Tp __psi(unsigned int __n, _Tp __x) { if (__x <= _Tp(0)) std::__throw_domain_error(("Argument out of range " "in __psi") ); else if (__n == 0) return __psi(__x); else { const _Tp __hzeta = __hurwitz_zeta(_Tp(__n + 1), __x); const _Tp __ln_nfact = ::std::lgamma(_Tp(__n + 1)); _Tp __result = std::exp(__ln_nfact) * __hzeta; if (__n % 2 == 1) __result = -__result; return __result; } } } } # 48 "/usr/include/c++/15/bits/specfun.h" 2 3 # 1 "/usr/include/c++/15/tr1/bessel_function.tcc" 1 3 # 55 "/usr/include/c++/15/tr1/bessel_function.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 71 "/usr/include/c++/15/tr1/bessel_function.tcc" 3 namespace __detail { # 98 "/usr/include/c++/15/tr1/bessel_function.tcc" 3 template void __gamma_temme(_Tp __mu, _Tp & __gam1, _Tp & __gam2, _Tp & __gampl, _Tp & __gammi) { __gampl = _Tp(1) / ::std::tgamma(_Tp(1) + __mu); __gammi = _Tp(1) / ::std::tgamma(_Tp(1) - __mu); if (std::abs(__mu) < std::numeric_limits<_Tp>::epsilon()) __gam1 = -_Tp(__numeric_constants<_Tp>::__gamma_e()); else __gam1 = (__gammi - __gampl) / (_Tp(2) * __mu); __gam2 = (__gammi + __gampl) / (_Tp(2)); return; } # 136 "/usr/include/c++/15/tr1/bessel_function.tcc" 3 template void __bessel_jn(_Tp __nu, _Tp __x, _Tp & __Jnu, _Tp & __Nnu, _Tp & __Jpnu, _Tp & __Npnu) { if (__x == _Tp(0)) { if (__nu == _Tp(0)) { __Jnu = _Tp(1); __Jpnu = _Tp(0); } else if (__nu == _Tp(1)) { __Jnu = _Tp(0); __Jpnu = _Tp(0.5L); } else { __Jnu = _Tp(0); __Jpnu = _Tp(0); } __Nnu = -std::numeric_limits<_Tp>::infinity(); __Npnu = std::numeric_limits<_Tp>::infinity(); return; } const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __fp_min = std::sqrt(std::numeric_limits<_Tp>::min()); const int __max_iter = 15000; const _Tp __x_min = _Tp(2); const int __nl = (__x < __x_min ? static_cast(__nu + _Tp(0.5L)) : std::max(0, static_cast(__nu - __x + _Tp(1.5L)))); const _Tp __mu = __nu - __nl; const _Tp __mu2 = __mu * __mu; const _Tp __xi = _Tp(1) / __x; const _Tp __xi2 = _Tp(2) * __xi; _Tp __w = __xi2 / __numeric_constants<_Tp>::__pi(); int __isign = 1; _Tp __h = __nu * __xi; if (__h < __fp_min) __h = __fp_min; _Tp __b = __xi2 * __nu; _Tp __d = _Tp(0); _Tp __c = __h; int __i; for (__i = 1; __i <= __max_iter; ++__i) { __b += __xi2; __d = __b - __d; if (std::abs(__d) < __fp_min) __d = __fp_min; __c = __b - _Tp(1) / __c; if (std::abs(__c) < __fp_min) __c = __fp_min; __d = _Tp(1) / __d; const _Tp __del = __c * __d; __h *= __del; if (__d < _Tp(0)) __isign = -__isign; if (std::abs(__del - _Tp(1)) < __eps) break; } if (__i > __max_iter) std::__throw_runtime_error(("Argument x too large in __bessel_jn; " "try asymptotic expansion.") ); _Tp __Jnul = __isign * __fp_min; _Tp __Jpnul = __h * __Jnul; _Tp __Jnul1 = __Jnul; _Tp __Jpnu1 = __Jpnul; _Tp __fact = __nu * __xi; for ( int __l = __nl; __l >= 1; --__l ) { const _Tp __Jnutemp = __fact * __Jnul + __Jpnul; __fact -= __xi; __Jpnul = __fact * __Jnutemp - __Jnul; __Jnul = __Jnutemp; } if (__Jnul == _Tp(0)) __Jnul = __eps; _Tp __f= __Jpnul / __Jnul; _Tp __Nmu, __Nnu1, __Npmu, __Jmu; if (__x < __x_min) { const _Tp __x2 = __x / _Tp(2); const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; _Tp __fact = (std::abs(__pimu) < __eps ? _Tp(1) : __pimu / std::sin(__pimu)); _Tp __d = -std::log(__x2); _Tp __e = __mu * __d; _Tp __fact2 = (std::abs(__e) < __eps ? _Tp(1) : std::sinh(__e) / __e); _Tp __gam1, __gam2, __gampl, __gammi; __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); _Tp __ff = (_Tp(2) / __numeric_constants<_Tp>::__pi()) * __fact * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); __e = std::exp(__e); _Tp __p = __e / (__numeric_constants<_Tp>::__pi() * __gampl); _Tp __q = _Tp(1) / (__e * __numeric_constants<_Tp>::__pi() * __gammi); const _Tp __pimu2 = __pimu / _Tp(2); _Tp __fact3 = (std::abs(__pimu2) < __eps ? _Tp(1) : std::sin(__pimu2) / __pimu2 ); _Tp __r = __numeric_constants<_Tp>::__pi() * __pimu2 * __fact3 * __fact3; _Tp __c = _Tp(1); __d = -__x2 * __x2; _Tp __sum = __ff + __r * __q; _Tp __sum1 = __p; for (__i = 1; __i <= __max_iter; ++__i) { __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); __c *= __d / _Tp(__i); __p /= _Tp(__i) - __mu; __q /= _Tp(__i) + __mu; const _Tp __del = __c * (__ff + __r * __q); __sum += __del; const _Tp __del1 = __c * __p - __i * __del; __sum1 += __del1; if ( std::abs(__del) < __eps * (_Tp(1) + std::abs(__sum)) ) break; } if ( __i > __max_iter ) std::__throw_runtime_error(("Bessel y series failed to converge " "in __bessel_jn.") ); __Nmu = -__sum; __Nnu1 = -__sum1 * __xi2; __Npmu = __mu * __xi * __Nmu - __Nnu1; __Jmu = __w / (__Npmu - __f * __Nmu); } else { _Tp __a = _Tp(0.25L) - __mu2; _Tp __q = _Tp(1); _Tp __p = -__xi / _Tp(2); _Tp __br = _Tp(2) * __x; _Tp __bi = _Tp(2); _Tp __fact = __a * __xi / (__p * __p + __q * __q); _Tp __cr = __br + __q * __fact; _Tp __ci = __bi + __p * __fact; _Tp __den = __br * __br + __bi * __bi; _Tp __dr = __br / __den; _Tp __di = -__bi / __den; _Tp __dlr = __cr * __dr - __ci * __di; _Tp __dli = __cr * __di + __ci * __dr; _Tp __temp = __p * __dlr - __q * __dli; __q = __p * __dli + __q * __dlr; __p = __temp; int __i; for (__i = 2; __i <= __max_iter; ++__i) { __a += _Tp(2 * (__i - 1)); __bi += _Tp(2); __dr = __a * __dr + __br; __di = __a * __di + __bi; if (std::abs(__dr) + std::abs(__di) < __fp_min) __dr = __fp_min; __fact = __a / (__cr * __cr + __ci * __ci); __cr = __br + __cr * __fact; __ci = __bi - __ci * __fact; if (std::abs(__cr) + std::abs(__ci) < __fp_min) __cr = __fp_min; __den = __dr * __dr + __di * __di; __dr /= __den; __di /= -__den; __dlr = __cr * __dr - __ci * __di; __dli = __cr * __di + __ci * __dr; __temp = __p * __dlr - __q * __dli; __q = __p * __dli + __q * __dlr; __p = __temp; if (std::abs(__dlr - _Tp(1)) + std::abs(__dli) < __eps) break; } if (__i > __max_iter) std::__throw_runtime_error(("Lentz's method failed " "in __bessel_jn.") ); const _Tp __gam = (__p - __f) / __q; __Jmu = std::sqrt(__w / ((__p - __f) * __gam + __q)); __Jmu = ::std::copysign(__Jmu, __Jnul); __Nmu = __gam * __Jmu; __Npmu = (__p + __q / __gam) * __Nmu; __Nnu1 = __mu * __xi * __Nmu - __Npmu; } __fact = __Jmu / __Jnul; __Jnu = __fact * __Jnul1; __Jpnu = __fact * __Jpnu1; for (__i = 1; __i <= __nl; ++__i) { const _Tp __Nnutemp = (__mu + __i) * __xi2 * __Nnu1 - __Nmu; __Nmu = __Nnu1; __Nnu1 = __Nnutemp; } __Nnu = __Nmu; __Npnu = __nu * __xi * __Nmu - __Nnu1; return; } # 361 "/usr/include/c++/15/tr1/bessel_function.tcc" 3 template void __cyl_bessel_jn_asymp(_Tp __nu, _Tp __x, _Tp & __Jnu, _Tp & __Nnu) { const _Tp __mu = _Tp(4) * __nu * __nu; const _Tp __8x = _Tp(8) * __x; _Tp __P = _Tp(0); _Tp __Q = _Tp(0); _Tp __k = _Tp(0); _Tp __term = _Tp(1); int __epsP = 0; int __epsQ = 0; _Tp __eps = std::numeric_limits<_Tp>::epsilon(); do { __term *= (__k == 0 ? _Tp(1) : -(__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x)); __epsP = std::abs(__term) < __eps * std::abs(__P); __P += __term; __k++; __term *= (__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x); __epsQ = std::abs(__term) < __eps * std::abs(__Q); __Q += __term; if (__epsP && __epsQ && __k > (__nu / 2.)) break; __k++; } while (__k < 1000); const _Tp __chi = __x - (__nu + _Tp(0.5L)) * __numeric_constants<_Tp>::__pi_2(); const _Tp __c = std::cos(__chi); const _Tp __s = std::sin(__chi); const _Tp __coef = std::sqrt(_Tp(2) / (__numeric_constants<_Tp>::__pi() * __x)); __Jnu = __coef * (__c * __P - __s * __Q); __Nnu = __coef * (__s * __P + __c * __Q); return; } # 444 "/usr/include/c++/15/tr1/bessel_function.tcc" 3 template _Tp __cyl_bessel_ij_series(_Tp __nu, _Tp __x, _Tp __sgn, unsigned int __max_iter) { if (__x == _Tp(0)) return __nu == _Tp(0) ? _Tp(1) : _Tp(0); const _Tp __x2 = __x / _Tp(2); _Tp __fact = __nu * std::log(__x2); __fact -= ::std::lgamma(__nu + _Tp(1)); __fact = std::exp(__fact); const _Tp __xx4 = __sgn * __x2 * __x2; _Tp __Jn = _Tp(1); _Tp __term = _Tp(1); for (unsigned int __i = 1; __i < __max_iter; ++__i) { __term *= __xx4 / (_Tp(__i) * (__nu + _Tp(__i))); __Jn += __term; if (std::abs(__term / __Jn) < std::numeric_limits<_Tp>::epsilon()) break; } return __fact * __Jn; } # 490 "/usr/include/c++/15/tr1/bessel_function.tcc" 3 template _Tp __cyl_bessel_j(_Tp __nu, _Tp __x) { if (__nu < _Tp(0) || __x < _Tp(0)) std::__throw_domain_error(("Bad argument " "in __cyl_bessel_j.") ); else if (__isnan(__nu) || __isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) return __cyl_bessel_ij_series(__nu, __x, -_Tp(1), 200); else if (__x > _Tp(1000)) { _Tp __J_nu, __N_nu; __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); return __J_nu; } else { _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); return __J_nu; } } # 532 "/usr/include/c++/15/tr1/bessel_function.tcc" 3 template _Tp __cyl_neumann_n(_Tp __nu, _Tp __x) { if (__nu < _Tp(0) || __x < _Tp(0)) std::__throw_domain_error(("Bad argument " "in __cyl_neumann_n.") ); else if (__isnan(__nu) || __isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__x > _Tp(1000)) { _Tp __J_nu, __N_nu; __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); return __N_nu; } else { _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); return __N_nu; } } # 569 "/usr/include/c++/15/tr1/bessel_function.tcc" 3 template void __sph_bessel_jn(unsigned int __n, _Tp __x, _Tp & __j_n, _Tp & __n_n, _Tp & __jp_n, _Tp & __np_n) { const _Tp __nu = _Tp(__n) + _Tp(0.5L); _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() / std::sqrt(__x); __j_n = __factor * __J_nu; __n_n = __factor * __N_nu; __jp_n = __factor * __Jp_nu - __j_n / (_Tp(2) * __x); __np_n = __factor * __Np_nu - __n_n / (_Tp(2) * __x); return; } # 604 "/usr/include/c++/15/tr1/bessel_function.tcc" 3 template _Tp __sph_bessel(unsigned int __n, _Tp __x) { if (__x < _Tp(0)) std::__throw_domain_error(("Bad argument " "in __sph_bessel.") ); else if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__x == _Tp(0)) { if (__n == 0) return _Tp(1); else return _Tp(0); } else { _Tp __j_n, __n_n, __jp_n, __np_n; __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); return __j_n; } } # 642 "/usr/include/c++/15/tr1/bessel_function.tcc" 3 template _Tp __sph_neumann(unsigned int __n, _Tp __x) { if (__x < _Tp(0)) std::__throw_domain_error(("Bad argument " "in __sph_neumann.") ); else if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__x == _Tp(0)) return -std::numeric_limits<_Tp>::infinity(); else { _Tp __j_n, __n_n, __jp_n, __np_n; __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); return __n_n; } } } } # 49 "/usr/include/c++/15/bits/specfun.h" 2 3 # 1 "/usr/include/c++/15/tr1/beta_function.tcc" 1 3 # 49 "/usr/include/c++/15/tr1/beta_function.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 65 "/usr/include/c++/15/tr1/beta_function.tcc" 3 namespace __detail { # 79 "/usr/include/c++/15/tr1/beta_function.tcc" 3 template _Tp __beta_gamma(_Tp __x, _Tp __y) { _Tp __bet; if (__x > __y) { __bet = ::std::tgamma(__x) / ::std::tgamma(__x + __y); __bet *= ::std::tgamma(__y); } else { __bet = ::std::tgamma(__y) / ::std::tgamma(__x + __y); __bet *= ::std::tgamma(__x); } # 111 "/usr/include/c++/15/tr1/beta_function.tcc" 3 return __bet; } # 127 "/usr/include/c++/15/tr1/beta_function.tcc" 3 template _Tp __beta_lgamma(_Tp __x, _Tp __y) { _Tp __bet = ::std::lgamma(__x) + ::std::lgamma(__y) - ::std::lgamma(__x + __y); __bet = std::exp(__bet); return __bet; } # 158 "/usr/include/c++/15/tr1/beta_function.tcc" 3 template _Tp __beta_product(_Tp __x, _Tp __y) { _Tp __bet = (__x + __y) / (__x * __y); unsigned int __max_iter = 1000000; for (unsigned int __k = 1; __k < __max_iter; ++__k) { _Tp __term = (_Tp(1) + (__x + __y) / __k) / ((_Tp(1) + __x / __k) * (_Tp(1) + __y / __k)); __bet *= __term; } return __bet; } # 189 "/usr/include/c++/15/tr1/beta_function.tcc" 3 template inline _Tp __beta(_Tp __x, _Tp __y) { if (__isnan(__x) || __isnan(__y)) return std::numeric_limits<_Tp>::quiet_NaN(); else return __beta_lgamma(__x, __y); } } } # 50 "/usr/include/c++/15/bits/specfun.h" 2 3 # 1 "/usr/include/c++/15/tr1/ell_integral.tcc" 1 3 # 45 "/usr/include/c++/15/tr1/ell_integral.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 59 "/usr/include/c++/15/tr1/ell_integral.tcc" 3 namespace __detail { # 76 "/usr/include/c++/15/tr1/ell_integral.tcc" 3 template _Tp __ellint_rf(_Tp __x, _Tp __y, _Tp __z) { const _Tp __min = std::numeric_limits<_Tp>::min(); const _Tp __lolim = _Tp(5) * __min; if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) std::__throw_domain_error(("Argument less than zero " "in __ellint_rf.") ); else if (__x + __y < __lolim || __x + __z < __lolim || __y + __z < __lolim) std::__throw_domain_error(("Argument too small in __ellint_rf")); else { const _Tp __c0 = _Tp(1) / _Tp(4); const _Tp __c1 = _Tp(1) / _Tp(24); const _Tp __c2 = _Tp(1) / _Tp(10); const _Tp __c3 = _Tp(3) / _Tp(44); const _Tp __c4 = _Tp(1) / _Tp(14); _Tp __xn = __x; _Tp __yn = __y; _Tp __zn = __z; const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __errtol = std::pow(__eps, _Tp(1) / _Tp(6)); _Tp __mu; _Tp __xndev, __yndev, __zndev; const unsigned int __max_iter = 100; for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) { __mu = (__xn + __yn + __zn) / _Tp(3); __xndev = 2 - (__mu + __xn) / __mu; __yndev = 2 - (__mu + __yn) / __mu; __zndev = 2 - (__mu + __zn) / __mu; _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); __epsilon = std::max(__epsilon, std::abs(__zndev)); if (__epsilon < __errtol) break; const _Tp __xnroot = std::sqrt(__xn); const _Tp __ynroot = std::sqrt(__yn); const _Tp __znroot = std::sqrt(__zn); const _Tp __lambda = __xnroot * (__ynroot + __znroot) + __ynroot * __znroot; __xn = __c0 * (__xn + __lambda); __yn = __c0 * (__yn + __lambda); __zn = __c0 * (__zn + __lambda); } const _Tp __e2 = __xndev * __yndev - __zndev * __zndev; const _Tp __e3 = __xndev * __yndev * __zndev; const _Tp __s = _Tp(1) + (__c1 * __e2 - __c2 - __c3 * __e3) * __e2 + __c4 * __e3; return __s / std::sqrt(__mu); } } # 153 "/usr/include/c++/15/tr1/ell_integral.tcc" 3 template _Tp __comp_ellint_1_series(_Tp __k) { const _Tp __kk = __k * __k; _Tp __term = __kk / _Tp(4); _Tp __sum = _Tp(1) + __term; const unsigned int __max_iter = 1000; for (unsigned int __i = 2; __i < __max_iter; ++__i) { __term *= (2 * __i - 1) * __kk / (2 * __i); if (__term < std::numeric_limits<_Tp>::epsilon()) break; __sum += __term; } return __numeric_constants<_Tp>::__pi_2() * __sum; } # 191 "/usr/include/c++/15/tr1/ell_integral.tcc" 3 template _Tp __comp_ellint_1(_Tp __k) { if (__isnan(__k)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (std::abs(__k) >= _Tp(1)) return std::numeric_limits<_Tp>::quiet_NaN(); else return __ellint_rf(_Tp(0), _Tp(1) - __k * __k, _Tp(1)); } # 219 "/usr/include/c++/15/tr1/ell_integral.tcc" 3 template _Tp __ellint_1(_Tp __k, _Tp __phi) { if (__isnan(__k) || __isnan(__phi)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (std::abs(__k) > _Tp(1)) std::__throw_domain_error(("Bad argument in __ellint_1.")); else { const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() + _Tp(0.5L)); const _Tp __phi_red = __phi - __n * __numeric_constants<_Tp>::__pi(); const _Tp __s = std::sin(__phi_red); const _Tp __c = std::cos(__phi_red); const _Tp __F = __s * __ellint_rf(__c * __c, _Tp(1) - __k * __k * __s * __s, _Tp(1)); if (__n == 0) return __F; else return __F + _Tp(2) * __n * __comp_ellint_1(__k); } } # 266 "/usr/include/c++/15/tr1/ell_integral.tcc" 3 template _Tp __comp_ellint_2_series(_Tp __k) { const _Tp __kk = __k * __k; _Tp __term = __kk; _Tp __sum = __term; const unsigned int __max_iter = 1000; for (unsigned int __i = 2; __i < __max_iter; ++__i) { const _Tp __i2m = 2 * __i - 1; const _Tp __i2 = 2 * __i; __term *= __i2m * __i2m * __kk / (__i2 * __i2); if (__term < std::numeric_limits<_Tp>::epsilon()) break; __sum += __term / __i2m; } return __numeric_constants<_Tp>::__pi_2() * (_Tp(1) - __sum); } # 314 "/usr/include/c++/15/tr1/ell_integral.tcc" 3 template _Tp __ellint_rd(_Tp __x, _Tp __y, _Tp __z) { const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); const _Tp __max = std::numeric_limits<_Tp>::max(); const _Tp __lolim = _Tp(2) / std::pow(__max, _Tp(2) / _Tp(3)); if (__x < _Tp(0) || __y < _Tp(0)) std::__throw_domain_error(("Argument less than zero " "in __ellint_rd.") ); else if (__x + __y < __lolim || __z < __lolim) std::__throw_domain_error(("Argument too small " "in __ellint_rd.") ); else { const _Tp __c0 = _Tp(1) / _Tp(4); const _Tp __c1 = _Tp(3) / _Tp(14); const _Tp __c2 = _Tp(1) / _Tp(6); const _Tp __c3 = _Tp(9) / _Tp(22); const _Tp __c4 = _Tp(3) / _Tp(26); _Tp __xn = __x; _Tp __yn = __y; _Tp __zn = __z; _Tp __sigma = _Tp(0); _Tp __power4 = _Tp(1); _Tp __mu; _Tp __xndev, __yndev, __zndev; const unsigned int __max_iter = 100; for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) { __mu = (__xn + __yn + _Tp(3) * __zn) / _Tp(5); __xndev = (__mu - __xn) / __mu; __yndev = (__mu - __yn) / __mu; __zndev = (__mu - __zn) / __mu; _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); __epsilon = std::max(__epsilon, std::abs(__zndev)); if (__epsilon < __errtol) break; _Tp __xnroot = std::sqrt(__xn); _Tp __ynroot = std::sqrt(__yn); _Tp __znroot = std::sqrt(__zn); _Tp __lambda = __xnroot * (__ynroot + __znroot) + __ynroot * __znroot; __sigma += __power4 / (__znroot * (__zn + __lambda)); __power4 *= __c0; __xn = __c0 * (__xn + __lambda); __yn = __c0 * (__yn + __lambda); __zn = __c0 * (__zn + __lambda); } _Tp __ea = __xndev * __yndev; _Tp __eb = __zndev * __zndev; _Tp __ec = __ea - __eb; _Tp __ed = __ea - _Tp(6) * __eb; _Tp __ef = __ed + __ec + __ec; _Tp __s1 = __ed * (-__c1 + __c3 * __ed / _Tp(3) - _Tp(3) * __c4 * __zndev * __ef / _Tp(2)); _Tp __s2 = __zndev * (__c2 * __ef + __zndev * (-__c3 * __ec - __zndev * __c4 - __ea)); return _Tp(3) * __sigma + __power4 * (_Tp(1) + __s1 + __s2) / (__mu * std::sqrt(__mu)); } } # 399 "/usr/include/c++/15/tr1/ell_integral.tcc" 3 template _Tp __comp_ellint_2(_Tp __k) { if (__isnan(__k)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (std::abs(__k) == 1) return _Tp(1); else if (std::abs(__k) > _Tp(1)) std::__throw_domain_error(("Bad argument in __comp_ellint_2.")); else { const _Tp __kk = __k * __k; return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) - __kk * __ellint_rd(_Tp(0), _Tp(1) - __kk, _Tp(1)) / _Tp(3); } } # 433 "/usr/include/c++/15/tr1/ell_integral.tcc" 3 template _Tp __ellint_2(_Tp __k, _Tp __phi) { if (__isnan(__k) || __isnan(__phi)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (std::abs(__k) > _Tp(1)) std::__throw_domain_error(("Bad argument in __ellint_2.")); else { const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() + _Tp(0.5L)); const _Tp __phi_red = __phi - __n * __numeric_constants<_Tp>::__pi(); const _Tp __kk = __k * __k; const _Tp __s = std::sin(__phi_red); const _Tp __ss = __s * __s; const _Tp __sss = __ss * __s; const _Tp __c = std::cos(__phi_red); const _Tp __cc = __c * __c; const _Tp __E = __s * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) - __kk * __sss * __ellint_rd(__cc, _Tp(1) - __kk * __ss, _Tp(1)) / _Tp(3); if (__n == 0) return __E; else return __E + _Tp(2) * __n * __comp_ellint_2(__k); } } # 492 "/usr/include/c++/15/tr1/ell_integral.tcc" 3 template _Tp __ellint_rc(_Tp __x, _Tp __y) { const _Tp __min = std::numeric_limits<_Tp>::min(); const _Tp __lolim = _Tp(5) * __min; if (__x < _Tp(0) || __y < _Tp(0) || __x + __y < __lolim) std::__throw_domain_error(("Argument less than zero " "in __ellint_rc.") ); else { const _Tp __c0 = _Tp(1) / _Tp(4); const _Tp __c1 = _Tp(1) / _Tp(7); const _Tp __c2 = _Tp(9) / _Tp(22); const _Tp __c3 = _Tp(3) / _Tp(10); const _Tp __c4 = _Tp(3) / _Tp(8); _Tp __xn = __x; _Tp __yn = __y; const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __errtol = std::pow(__eps / _Tp(30), _Tp(1) / _Tp(6)); _Tp __mu; _Tp __sn; const unsigned int __max_iter = 100; for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) { __mu = (__xn + _Tp(2) * __yn) / _Tp(3); __sn = (__yn + __mu) / __mu - _Tp(2); if (std::abs(__sn) < __errtol) break; const _Tp __lambda = _Tp(2) * std::sqrt(__xn) * std::sqrt(__yn) + __yn; __xn = __c0 * (__xn + __lambda); __yn = __c0 * (__yn + __lambda); } _Tp __s = __sn * __sn * (__c3 + __sn*(__c1 + __sn * (__c4 + __sn * __c2))); return (_Tp(1) + __s) / std::sqrt(__mu); } } # 561 "/usr/include/c++/15/tr1/ell_integral.tcc" 3 template _Tp __ellint_rj(_Tp __x, _Tp __y, _Tp __z, _Tp __p) { const _Tp __min = std::numeric_limits<_Tp>::min(); const _Tp __lolim = std::pow(_Tp(5) * __min, _Tp(1)/_Tp(3)); if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) std::__throw_domain_error(("Argument less than zero " "in __ellint_rj.") ); else if (__x + __y < __lolim || __x + __z < __lolim || __y + __z < __lolim || __p < __lolim) std::__throw_domain_error(("Argument too small " "in __ellint_rj") ); else { const _Tp __c0 = _Tp(1) / _Tp(4); const _Tp __c1 = _Tp(3) / _Tp(14); const _Tp __c2 = _Tp(1) / _Tp(3); const _Tp __c3 = _Tp(3) / _Tp(22); const _Tp __c4 = _Tp(3) / _Tp(26); _Tp __xn = __x; _Tp __yn = __y; _Tp __zn = __z; _Tp __pn = __p; _Tp __sigma = _Tp(0); _Tp __power4 = _Tp(1); const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); _Tp __mu; _Tp __xndev, __yndev, __zndev, __pndev; const unsigned int __max_iter = 100; for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) { __mu = (__xn + __yn + __zn + _Tp(2) * __pn) / _Tp(5); __xndev = (__mu - __xn) / __mu; __yndev = (__mu - __yn) / __mu; __zndev = (__mu - __zn) / __mu; __pndev = (__mu - __pn) / __mu; _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); __epsilon = std::max(__epsilon, std::abs(__zndev)); __epsilon = std::max(__epsilon, std::abs(__pndev)); if (__epsilon < __errtol) break; const _Tp __xnroot = std::sqrt(__xn); const _Tp __ynroot = std::sqrt(__yn); const _Tp __znroot = std::sqrt(__zn); const _Tp __lambda = __xnroot * (__ynroot + __znroot) + __ynroot * __znroot; const _Tp __alpha1 = __pn * (__xnroot + __ynroot + __znroot) + __xnroot * __ynroot * __znroot; const _Tp __alpha2 = __alpha1 * __alpha1; const _Tp __beta = __pn * (__pn + __lambda) * (__pn + __lambda); __sigma += __power4 * __ellint_rc(__alpha2, __beta); __power4 *= __c0; __xn = __c0 * (__xn + __lambda); __yn = __c0 * (__yn + __lambda); __zn = __c0 * (__zn + __lambda); __pn = __c0 * (__pn + __lambda); } _Tp __ea = __xndev * (__yndev + __zndev) + __yndev * __zndev; _Tp __eb = __xndev * __yndev * __zndev; _Tp __ec = __pndev * __pndev; _Tp __e2 = __ea - _Tp(3) * __ec; _Tp __e3 = __eb + _Tp(2) * __pndev * (__ea - __ec); _Tp __s1 = _Tp(1) + __e2 * (-__c1 + _Tp(3) * __c3 * __e2 / _Tp(4) - _Tp(3) * __c4 * __e3 / _Tp(2)); _Tp __s2 = __eb * (__c2 / _Tp(2) + __pndev * (-__c3 - __c3 + __pndev * __c4)); _Tp __s3 = __pndev * __ea * (__c2 - __pndev * __c3) - __c2 * __pndev * __ec; return _Tp(3) * __sigma + __power4 * (__s1 + __s2 + __s3) / (__mu * std::sqrt(__mu)); } } # 661 "/usr/include/c++/15/tr1/ell_integral.tcc" 3 template _Tp __comp_ellint_3(_Tp __k, _Tp __nu) { if (__isnan(__k) || __isnan(__nu)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__nu == _Tp(1)) return std::numeric_limits<_Tp>::infinity(); else if (std::abs(__k) > _Tp(1)) std::__throw_domain_error(("Bad argument in __comp_ellint_3.")); else { const _Tp __kk = __k * __k; return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) + __nu * __ellint_rj(_Tp(0), _Tp(1) - __kk, _Tp(1), _Tp(1) - __nu) / _Tp(3); } } # 701 "/usr/include/c++/15/tr1/ell_integral.tcc" 3 template _Tp __ellint_3(_Tp __k, _Tp __nu, _Tp __phi) { if (__isnan(__k) || __isnan(__nu) || __isnan(__phi)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (std::abs(__k) > _Tp(1)) std::__throw_domain_error(("Bad argument in __ellint_3.")); else { const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() + _Tp(0.5L)); const _Tp __phi_red = __phi - __n * __numeric_constants<_Tp>::__pi(); const _Tp __kk = __k * __k; const _Tp __s = std::sin(__phi_red); const _Tp __ss = __s * __s; const _Tp __sss = __ss * __s; const _Tp __c = std::cos(__phi_red); const _Tp __cc = __c * __c; const _Tp __Pi = __s * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) + __nu * __sss * __ellint_rj(__cc, _Tp(1) - __kk * __ss, _Tp(1), _Tp(1) - __nu * __ss) / _Tp(3); if (__n == 0) return __Pi; else return __Pi + _Tp(2) * __n * __comp_ellint_3(__k, __nu); } } } } # 51 "/usr/include/c++/15/bits/specfun.h" 2 3 # 1 "/usr/include/c++/15/tr1/exp_integral.tcc" 1 3 # 50 "/usr/include/c++/15/tr1/exp_integral.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 64 "/usr/include/c++/15/tr1/exp_integral.tcc" 3 namespace __detail { template _Tp __expint_E1(_Tp); # 81 "/usr/include/c++/15/tr1/exp_integral.tcc" 3 template _Tp __expint_E1_series(_Tp __x) { const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); _Tp __term = _Tp(1); _Tp __esum = _Tp(0); _Tp __osum = _Tp(0); const unsigned int __max_iter = 1000; for (unsigned int __i = 1; __i < __max_iter; ++__i) { __term *= - __x / __i; if (std::abs(__term) < __eps) break; if (__term >= _Tp(0)) __esum += __term / __i; else __osum += __term / __i; } return - __esum - __osum - __numeric_constants<_Tp>::__gamma_e() - std::log(__x); } # 118 "/usr/include/c++/15/tr1/exp_integral.tcc" 3 template _Tp __expint_E1_asymp(_Tp __x) { _Tp __term = _Tp(1); _Tp __esum = _Tp(1); _Tp __osum = _Tp(0); const unsigned int __max_iter = 1000; for (unsigned int __i = 1; __i < __max_iter; ++__i) { _Tp __prev = __term; __term *= - __i / __x; if (std::abs(__term) > std::abs(__prev)) break; if (__term >= _Tp(0)) __esum += __term; else __osum += __term; } return std::exp(- __x) * (__esum + __osum) / __x; } # 155 "/usr/include/c++/15/tr1/exp_integral.tcc" 3 template _Tp __expint_En_series(unsigned int __n, _Tp __x) { const unsigned int __max_iter = 1000; const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const int __nm1 = __n - 1; _Tp __ans = (__nm1 != 0 ? _Tp(1) / __nm1 : -std::log(__x) - __numeric_constants<_Tp>::__gamma_e()); _Tp __fact = _Tp(1); for (int __i = 1; __i <= __max_iter; ++__i) { __fact *= -__x / _Tp(__i); _Tp __del; if ( __i != __nm1 ) __del = -__fact / _Tp(__i - __nm1); else { _Tp __psi = -__numeric_constants<_Tp>::gamma_e(); for (int __ii = 1; __ii <= __nm1; ++__ii) __psi += _Tp(1) / _Tp(__ii); __del = __fact * (__psi - std::log(__x)); } __ans += __del; if (std::abs(__del) < __eps * std::abs(__ans)) return __ans; } std::__throw_runtime_error(("Series summation failed " "in __expint_En_series.") ); } # 201 "/usr/include/c++/15/tr1/exp_integral.tcc" 3 template _Tp __expint_En_cont_frac(unsigned int __n, _Tp __x) { const unsigned int __max_iter = 1000; const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __fp_min = std::numeric_limits<_Tp>::min(); const int __nm1 = __n - 1; _Tp __b = __x + _Tp(__n); _Tp __c = _Tp(1) / __fp_min; _Tp __d = _Tp(1) / __b; _Tp __h = __d; for ( unsigned int __i = 1; __i <= __max_iter; ++__i ) { _Tp __a = -_Tp(__i * (__nm1 + __i)); __b += _Tp(2); __d = _Tp(1) / (__a * __d + __b); __c = __b + __a / __c; const _Tp __del = __c * __d; __h *= __del; if (std::abs(__del - _Tp(1)) < __eps) { const _Tp __ans = __h * std::exp(-__x); return __ans; } } std::__throw_runtime_error(("Continued fraction failed " "in __expint_En_cont_frac.") ); } # 246 "/usr/include/c++/15/tr1/exp_integral.tcc" 3 template _Tp __expint_En_recursion(unsigned int __n, _Tp __x) { _Tp __En; _Tp __E1 = __expint_E1(__x); if (__x < _Tp(__n)) { __En = __E1; for (unsigned int __j = 2; __j < __n; ++__j) __En = (std::exp(-__x) - __x * __En) / _Tp(__j - 1); } else { __En = _Tp(1); const int __N = __n + 20; _Tp __save = _Tp(0); for (int __j = __N; __j > 0; --__j) { __En = (std::exp(-__x) - __j * __En) / __x; if (__j == __n) __save = __En; } _Tp __norm = __En / __E1; __En /= __norm; } return __En; } # 290 "/usr/include/c++/15/tr1/exp_integral.tcc" 3 template _Tp __expint_Ei_series(_Tp __x) { _Tp __term = _Tp(1); _Tp __sum = _Tp(0); const unsigned int __max_iter = 1000; for (unsigned int __i = 1; __i < __max_iter; ++__i) { __term *= __x / __i; __sum += __term / __i; if (__term < std::numeric_limits<_Tp>::epsilon() * __sum) break; } return __numeric_constants<_Tp>::__gamma_e() + __sum + std::log(__x); } # 321 "/usr/include/c++/15/tr1/exp_integral.tcc" 3 template _Tp __expint_Ei_asymp(_Tp __x) { _Tp __term = _Tp(1); _Tp __sum = _Tp(1); const unsigned int __max_iter = 1000; for (unsigned int __i = 1; __i < __max_iter; ++__i) { _Tp __prev = __term; __term *= __i / __x; if (__term < std::numeric_limits<_Tp>::epsilon()) break; if (__term >= __prev) break; __sum += __term; } return std::exp(__x) * __sum / __x; } # 354 "/usr/include/c++/15/tr1/exp_integral.tcc" 3 template _Tp __expint_Ei(_Tp __x) { if (__x < _Tp(0)) return -__expint_E1(-__x); else if (__x < -std::log(std::numeric_limits<_Tp>::epsilon())) return __expint_Ei_series(__x); else return __expint_Ei_asymp(__x); } # 378 "/usr/include/c++/15/tr1/exp_integral.tcc" 3 template _Tp __expint_E1(_Tp __x) { if (__x < _Tp(0)) return -__expint_Ei(-__x); else if (__x < _Tp(1)) return __expint_E1_series(__x); else if (__x < _Tp(100)) return __expint_En_cont_frac(1, __x); else return __expint_E1_asymp(__x); } # 408 "/usr/include/c++/15/tr1/exp_integral.tcc" 3 template _Tp __expint_asymp(unsigned int __n, _Tp __x) { _Tp __term = _Tp(1); _Tp __sum = _Tp(1); for (unsigned int __i = 1; __i <= __n; ++__i) { _Tp __prev = __term; __term *= -(__n - __i + 1) / __x; if (std::abs(__term) > std::abs(__prev)) break; __sum += __term; } return std::exp(-__x) * __sum / __x; } # 442 "/usr/include/c++/15/tr1/exp_integral.tcc" 3 template _Tp __expint_large_n(unsigned int __n, _Tp __x) { const _Tp __xpn = __x + __n; const _Tp __xpn2 = __xpn * __xpn; _Tp __term = _Tp(1); _Tp __sum = _Tp(1); for (unsigned int __i = 1; __i <= __n; ++__i) { _Tp __prev = __term; __term *= (__n - 2 * (__i - 1) * __x) / __xpn2; if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) break; __sum += __term; } return std::exp(-__x) * __sum / __xpn; } # 476 "/usr/include/c++/15/tr1/exp_integral.tcc" 3 template _Tp __expint(unsigned int __n, _Tp __x) { if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__n <= 1 && __x == _Tp(0)) return std::numeric_limits<_Tp>::infinity(); else { _Tp __E0 = std::exp(__x) / __x; if (__n == 0) return __E0; _Tp __E1 = __expint_E1(__x); if (__n == 1) return __E1; if (__x == _Tp(0)) return _Tp(1) / static_cast<_Tp>(__n - 1); _Tp __En = __expint_En_recursion(__n, __x); return __En; } } # 516 "/usr/include/c++/15/tr1/exp_integral.tcc" 3 template inline _Tp __expint(_Tp __x) { if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else return __expint_Ei(__x); } } } # 52 "/usr/include/c++/15/bits/specfun.h" 2 3 # 1 "/usr/include/c++/15/tr1/hypergeometric.tcc" 1 3 # 44 "/usr/include/c++/15/tr1/hypergeometric.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 60 "/usr/include/c++/15/tr1/hypergeometric.tcc" 3 namespace __detail { # 83 "/usr/include/c++/15/tr1/hypergeometric.tcc" 3 template _Tp __conf_hyperg_series(_Tp __a, _Tp __c, _Tp __x) { const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); _Tp __term = _Tp(1); _Tp __Fac = _Tp(1); const unsigned int __max_iter = 100000; unsigned int __i; for (__i = 0; __i < __max_iter; ++__i) { __term *= (__a + _Tp(__i)) * __x / ((__c + _Tp(__i)) * _Tp(1 + __i)); if (std::abs(__term) < __eps) { break; } __Fac += __term; } if (__i == __max_iter) std::__throw_runtime_error(("Series failed to converge " "in __conf_hyperg_series.") ); return __Fac; } # 120 "/usr/include/c++/15/tr1/hypergeometric.tcc" 3 template _Tp __conf_hyperg_luke(_Tp __a, _Tp __c, _Tp __xin) { const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); const int __nmax = 20000; const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __x = -__xin; const _Tp __x3 = __x * __x * __x; const _Tp __t0 = __a / __c; const _Tp __t1 = (__a + _Tp(1)) / (_Tp(2) * __c); const _Tp __t2 = (__a + _Tp(2)) / (_Tp(2) * (__c + _Tp(1))); _Tp __F = _Tp(1); _Tp __prec; _Tp __Bnm3 = _Tp(1); _Tp __Bnm2 = _Tp(1) + __t1 * __x; _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); _Tp __Anm3 = _Tp(1); _Tp __Anm2 = __Bnm2 - __t0 * __x; _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; int __n = 3; while(1) { _Tp __npam1 = _Tp(__n - 1) + __a; _Tp __npcm1 = _Tp(__n - 1) + __c; _Tp __npam2 = _Tp(__n - 2) + __a; _Tp __npcm2 = _Tp(__n - 2) + __c; _Tp __tnm1 = _Tp(2 * __n - 1); _Tp __tnm3 = _Tp(2 * __n - 3); _Tp __tnm5 = _Tp(2 * __n - 5); _Tp __F1 = (_Tp(__n - 2) - __a) / (_Tp(2) * __tnm3 * __npcm1); _Tp __F2 = (_Tp(__n) + __a) * __npam1 / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); _Tp __F3 = -__npam2 * __npam1 * (_Tp(__n - 2) - __a) / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); _Tp __E = -__npam1 * (_Tp(__n - 1) - __c) / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; _Tp __r = __An / __Bn; __prec = std::abs((__F - __r) / __F); __F = __r; if (__prec < __eps || __n > __nmax) break; if (std::abs(__An) > __big || std::abs(__Bn) > __big) { __An /= __big; __Bn /= __big; __Anm1 /= __big; __Bnm1 /= __big; __Anm2 /= __big; __Bnm2 /= __big; __Anm3 /= __big; __Bnm3 /= __big; } else if (std::abs(__An) < _Tp(1) / __big || std::abs(__Bn) < _Tp(1) / __big) { __An *= __big; __Bn *= __big; __Anm1 *= __big; __Bnm1 *= __big; __Anm2 *= __big; __Bnm2 *= __big; __Anm3 *= __big; __Bnm3 *= __big; } ++__n; __Bnm3 = __Bnm2; __Bnm2 = __Bnm1; __Bnm1 = __Bn; __Anm3 = __Anm2; __Anm2 = __Anm1; __Anm1 = __An; } if (__n >= __nmax) std::__throw_runtime_error(("Iteration failed to converge " "in __conf_hyperg_luke.") ); return __F; } # 227 "/usr/include/c++/15/tr1/hypergeometric.tcc" 3 template _Tp __conf_hyperg(_Tp __a, _Tp __c, _Tp __x) { const _Tp __c_nint = ::std::nearbyint(__c); if (__isnan(__a) || __isnan(__c) || __isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__c_nint == __c && __c_nint <= 0) return std::numeric_limits<_Tp>::infinity(); else if (__a == _Tp(0)) return _Tp(1); else if (__c == __a) return std::exp(__x); else if (__x < _Tp(0)) return __conf_hyperg_luke(__a, __c, __x); else return __conf_hyperg_series(__a, __c, __x); } # 271 "/usr/include/c++/15/tr1/hypergeometric.tcc" 3 template _Tp __hyperg_series(_Tp __a, _Tp __b, _Tp __c, _Tp __x) { const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); _Tp __term = _Tp(1); _Tp __Fabc = _Tp(1); const unsigned int __max_iter = 100000; unsigned int __i; for (__i = 0; __i < __max_iter; ++__i) { __term *= (__a + _Tp(__i)) * (__b + _Tp(__i)) * __x / ((__c + _Tp(__i)) * _Tp(1 + __i)); if (std::abs(__term) < __eps) { break; } __Fabc += __term; } if (__i == __max_iter) std::__throw_runtime_error(("Series failed to converge " "in __hyperg_series.") ); return __Fabc; } template _Tp __hyperg_luke(_Tp __a, _Tp __b, _Tp __c, _Tp __xin) { const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); const int __nmax = 20000; const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __x = -__xin; const _Tp __x3 = __x * __x * __x; const _Tp __t0 = __a * __b / __c; const _Tp __t1 = (__a + _Tp(1)) * (__b + _Tp(1)) / (_Tp(2) * __c); const _Tp __t2 = (__a + _Tp(2)) * (__b + _Tp(2)) / (_Tp(2) * (__c + _Tp(1))); _Tp __F = _Tp(1); _Tp __Bnm3 = _Tp(1); _Tp __Bnm2 = _Tp(1) + __t1 * __x; _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); _Tp __Anm3 = _Tp(1); _Tp __Anm2 = __Bnm2 - __t0 * __x; _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; int __n = 3; while (1) { const _Tp __npam1 = _Tp(__n - 1) + __a; const _Tp __npbm1 = _Tp(__n - 1) + __b; const _Tp __npcm1 = _Tp(__n - 1) + __c; const _Tp __npam2 = _Tp(__n - 2) + __a; const _Tp __npbm2 = _Tp(__n - 2) + __b; const _Tp __npcm2 = _Tp(__n - 2) + __c; const _Tp __tnm1 = _Tp(2 * __n - 1); const _Tp __tnm3 = _Tp(2 * __n - 3); const _Tp __tnm5 = _Tp(2 * __n - 5); const _Tp __n2 = __n * __n; const _Tp __F1 = (_Tp(3) * __n2 + (__a + __b - _Tp(6)) * __n + _Tp(2) - __a * __b - _Tp(2) * (__a + __b)) / (_Tp(2) * __tnm3 * __npcm1); const _Tp __F2 = -(_Tp(3) * __n2 - (__a + __b + _Tp(6)) * __n + _Tp(2) - __a * __b) * __npam1 * __npbm1 / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); const _Tp __F3 = (__npam2 * __npam1 * __npbm2 * __npbm1 * (_Tp(__n - 2) - __a) * (_Tp(__n - 2) - __b)) / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); const _Tp __E = -__npam1 * __npbm1 * (_Tp(__n - 1) - __c) / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; const _Tp __r = __An / __Bn; const _Tp __prec = std::abs((__F - __r) / __F); __F = __r; if (__prec < __eps || __n > __nmax) break; if (std::abs(__An) > __big || std::abs(__Bn) > __big) { __An /= __big; __Bn /= __big; __Anm1 /= __big; __Bnm1 /= __big; __Anm2 /= __big; __Bnm2 /= __big; __Anm3 /= __big; __Bnm3 /= __big; } else if (std::abs(__An) < _Tp(1) / __big || std::abs(__Bn) < _Tp(1) / __big) { __An *= __big; __Bn *= __big; __Anm1 *= __big; __Bnm1 *= __big; __Anm2 *= __big; __Bnm2 *= __big; __Anm3 *= __big; __Bnm3 *= __big; } ++__n; __Bnm3 = __Bnm2; __Bnm2 = __Bnm1; __Bnm1 = __Bn; __Anm3 = __Anm2; __Anm2 = __Anm1; __Anm1 = __An; } if (__n >= __nmax) std::__throw_runtime_error(("Iteration failed to converge " "in __hyperg_luke.") ); return __F; } # 438 "/usr/include/c++/15/tr1/hypergeometric.tcc" 3 template _Tp __hyperg_reflect(_Tp __a, _Tp __b, _Tp __c, _Tp __x) { const _Tp __d = __c - __a - __b; const int __intd = std::floor(__d + _Tp(0.5L)); const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __toler = _Tp(1000) * __eps; const _Tp __log_max = std::log(std::numeric_limits<_Tp>::max()); const bool __d_integer = (std::abs(__d - __intd) < __toler); if (__d_integer) { const _Tp __ln_omx = std::log(_Tp(1) - __x); const _Tp __ad = std::abs(__d); _Tp __F1, __F2; _Tp __d1, __d2; if (__d >= _Tp(0)) { __d1 = __d; __d2 = _Tp(0); } else { __d1 = _Tp(0); __d2 = __d; } const _Tp __lng_c = __log_gamma(__c); if (__ad < __eps) { __F1 = _Tp(0); } else { bool __ok_d1 = true; _Tp __lng_ad, __lng_ad1, __lng_bd1; try { __lng_ad = __log_gamma(__ad); __lng_ad1 = __log_gamma(__a + __d1); __lng_bd1 = __log_gamma(__b + __d1); } catch(...) { __ok_d1 = false; } if (__ok_d1) { _Tp __sum1 = _Tp(1); _Tp __term = _Tp(1); _Tp __ln_pre1 = __lng_ad + __lng_c + __d2 * __ln_omx - __lng_ad1 - __lng_bd1; for (int __i = 1; __i < __ad; ++__i) { const int __j = __i - 1; __term *= (__a + __d2 + __j) * (__b + __d2 + __j) / (_Tp(1) + __d2 + __j) / __i * (_Tp(1) - __x); __sum1 += __term; } if (__ln_pre1 > __log_max) std::__throw_runtime_error(("Overflow of gamma functions" " in __hyperg_luke.") ); else __F1 = std::exp(__ln_pre1) * __sum1; } else { __F1 = _Tp(0); } } bool __ok_d2 = true; _Tp __lng_ad2, __lng_bd2; try { __lng_ad2 = __log_gamma(__a + __d2); __lng_bd2 = __log_gamma(__b + __d2); } catch(...) { __ok_d2 = false; } if (__ok_d2) { const int __maxiter = 2000; const _Tp __psi_1 = -__numeric_constants<_Tp>::__gamma_e(); const _Tp __psi_1pd = __psi(_Tp(1) + __ad); const _Tp __psi_apd1 = __psi(__a + __d1); const _Tp __psi_bpd1 = __psi(__b + __d1); _Tp __psi_term = __psi_1 + __psi_1pd - __psi_apd1 - __psi_bpd1 - __ln_omx; _Tp __fact = _Tp(1); _Tp __sum2 = __psi_term; _Tp __ln_pre2 = __lng_c + __d1 * __ln_omx - __lng_ad2 - __lng_bd2; int __j; for (__j = 1; __j < __maxiter; ++__j) { const _Tp __term1 = _Tp(1) / _Tp(__j) + _Tp(1) / (__ad + __j); const _Tp __term2 = _Tp(1) / (__a + __d1 + _Tp(__j - 1)) + _Tp(1) / (__b + __d1 + _Tp(__j - 1)); __psi_term += __term1 - __term2; __fact *= (__a + __d1 + _Tp(__j - 1)) * (__b + __d1 + _Tp(__j - 1)) / ((__ad + __j) * __j) * (_Tp(1) - __x); const _Tp __delta = __fact * __psi_term; __sum2 += __delta; if (std::abs(__delta) < __eps * std::abs(__sum2)) break; } if (__j == __maxiter) std::__throw_runtime_error(("Sum F2 failed to converge " "in __hyperg_reflect") ); if (__sum2 == _Tp(0)) __F2 = _Tp(0); else __F2 = std::exp(__ln_pre2) * __sum2; } else { __F2 = _Tp(0); } const _Tp __sgn_2 = (__intd % 2 == 1 ? -_Tp(1) : _Tp(1)); const _Tp __F = __F1 + __sgn_2 * __F2; return __F; } else { bool __ok1 = true; _Tp __sgn_g1ca = _Tp(0), __ln_g1ca = _Tp(0); _Tp __sgn_g1cb = _Tp(0), __ln_g1cb = _Tp(0); try { __sgn_g1ca = __log_gamma_sign(__c - __a); __ln_g1ca = __log_gamma(__c - __a); __sgn_g1cb = __log_gamma_sign(__c - __b); __ln_g1cb = __log_gamma(__c - __b); } catch(...) { __ok1 = false; } bool __ok2 = true; _Tp __sgn_g2a = _Tp(0), __ln_g2a = _Tp(0); _Tp __sgn_g2b = _Tp(0), __ln_g2b = _Tp(0); try { __sgn_g2a = __log_gamma_sign(__a); __ln_g2a = __log_gamma(__a); __sgn_g2b = __log_gamma_sign(__b); __ln_g2b = __log_gamma(__b); } catch(...) { __ok2 = false; } const _Tp __sgn_gc = __log_gamma_sign(__c); const _Tp __ln_gc = __log_gamma(__c); const _Tp __sgn_gd = __log_gamma_sign(__d); const _Tp __ln_gd = __log_gamma(__d); const _Tp __sgn_gmd = __log_gamma_sign(-__d); const _Tp __ln_gmd = __log_gamma(-__d); const _Tp __sgn1 = __sgn_gc * __sgn_gd * __sgn_g1ca * __sgn_g1cb; const _Tp __sgn2 = __sgn_gc * __sgn_gmd * __sgn_g2a * __sgn_g2b; _Tp __pre1, __pre2; if (__ok1 && __ok2) { _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b + __d * std::log(_Tp(1) - __x); if (__ln_pre1 < __log_max && __ln_pre2 < __log_max) { __pre1 = std::exp(__ln_pre1); __pre2 = std::exp(__ln_pre2); __pre1 *= __sgn1; __pre2 *= __sgn2; } else { std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") ); } } else if (__ok1 && !__ok2) { _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; if (__ln_pre1 < __log_max) { __pre1 = std::exp(__ln_pre1); __pre1 *= __sgn1; __pre2 = _Tp(0); } else { std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") ); } } else if (!__ok1 && __ok2) { _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b + __d * std::log(_Tp(1) - __x); if (__ln_pre2 < __log_max) { __pre1 = _Tp(0); __pre2 = std::exp(__ln_pre2); __pre2 *= __sgn2; } else { std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") ); } } else { __pre1 = _Tp(0); __pre2 = _Tp(0); std::__throw_runtime_error(("Underflow of gamma functions " "in __hyperg_reflect") ); } const _Tp __F1 = __hyperg_series(__a, __b, _Tp(1) - __d, _Tp(1) - __x); const _Tp __F2 = __hyperg_series(__c - __a, __c - __b, _Tp(1) + __d, _Tp(1) - __x); const _Tp __F = __pre1 * __F1 + __pre2 * __F2; return __F; } } # 728 "/usr/include/c++/15/tr1/hypergeometric.tcc" 3 template _Tp __hyperg(_Tp __a, _Tp __b, _Tp __c, _Tp __x) { const _Tp __a_nint = ::std::nearbyint(__a); const _Tp __b_nint = ::std::nearbyint(__b); const _Tp __c_nint = ::std::nearbyint(__c); const _Tp __toler = _Tp(1000) * std::numeric_limits<_Tp>::epsilon(); if (std::abs(__x) >= _Tp(1)) std::__throw_domain_error(("Argument outside unit circle " "in __hyperg.") ); else if (__isnan(__a) || __isnan(__b) || __isnan(__c) || __isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__c_nint == __c && __c_nint <= _Tp(0)) return std::numeric_limits<_Tp>::infinity(); else if (std::abs(__c - __b) < __toler || std::abs(__c - __a) < __toler) return std::pow(_Tp(1) - __x, __c - __a - __b); else if (__a >= _Tp(0) && __b >= _Tp(0) && __c >= _Tp(0) && __x >= _Tp(0) && __x < _Tp(0.995L)) return __hyperg_series(__a, __b, __c, __x); else if (std::abs(__a) < _Tp(10) && std::abs(__b) < _Tp(10)) { if (__a < _Tp(0) && std::abs(__a - __a_nint) < __toler) return __hyperg_series(__a_nint, __b, __c, __x); else if (__b < _Tp(0) && std::abs(__b - __b_nint) < __toler) return __hyperg_series(__a, __b_nint, __c, __x); else if (__x < -_Tp(0.25L)) return __hyperg_luke(__a, __b, __c, __x); else if (__x < _Tp(0.5L)) return __hyperg_series(__a, __b, __c, __x); else if (std::abs(__c) > _Tp(10)) return __hyperg_series(__a, __b, __c, __x); else return __hyperg_reflect(__a, __b, __c, __x); } else return __hyperg_luke(__a, __b, __c, __x); } } } # 53 "/usr/include/c++/15/bits/specfun.h" 2 3 # 1 "/usr/include/c++/15/tr1/legendre_function.tcc" 1 3 # 49 "/usr/include/c++/15/tr1/legendre_function.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 65 "/usr/include/c++/15/tr1/legendre_function.tcc" 3 namespace __detail { # 80 "/usr/include/c++/15/tr1/legendre_function.tcc" 3 template _Tp __poly_legendre_p(unsigned int __l, _Tp __x) { if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__x == +_Tp(1)) return +_Tp(1); else if (__x == -_Tp(1)) return (__l % 2 == 1 ? -_Tp(1) : +_Tp(1)); else { _Tp __p_lm2 = _Tp(1); if (__l == 0) return __p_lm2; _Tp __p_lm1 = __x; if (__l == 1) return __p_lm1; _Tp __p_l = 0; for (unsigned int __ll = 2; __ll <= __l; ++__ll) { __p_l = _Tp(2) * __x * __p_lm1 - __p_lm2 - (__x * __p_lm1 - __p_lm2) / _Tp(__ll); __p_lm2 = __p_lm1; __p_lm1 = __p_l; } return __p_l; } } # 136 "/usr/include/c++/15/tr1/legendre_function.tcc" 3 template _Tp __assoc_legendre_p(unsigned int __l, unsigned int __m, _Tp __x, _Tp __phase = _Tp(+1)) { if (__m > __l) return _Tp(0); else if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__m == 0) return __poly_legendre_p(__l, __x); else { _Tp __p_mm = _Tp(1); if (__m > 0) { _Tp __root = std::sqrt(_Tp(1) - __x) * std::sqrt(_Tp(1) + __x); _Tp __fact = _Tp(1); for (unsigned int __i = 1; __i <= __m; ++__i) { __p_mm *= __phase * __fact * __root; __fact += _Tp(2); } } if (__l == __m) return __p_mm; _Tp __p_mp1m = _Tp(2 * __m + 1) * __x * __p_mm; if (__l == __m + 1) return __p_mp1m; _Tp __p_lm2m = __p_mm; _Tp __P_lm1m = __p_mp1m; _Tp __p_lm = _Tp(0); for (unsigned int __j = __m + 2; __j <= __l; ++__j) { __p_lm = (_Tp(2 * __j - 1) * __x * __P_lm1m - _Tp(__j + __m - 1) * __p_lm2m) / _Tp(__j - __m); __p_lm2m = __P_lm1m; __P_lm1m = __p_lm; } return __p_lm; } } # 214 "/usr/include/c++/15/tr1/legendre_function.tcc" 3 template _Tp __sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) { if (__isnan(__theta)) return std::numeric_limits<_Tp>::quiet_NaN(); const _Tp __x = std::cos(__theta); if (__m > __l) return _Tp(0); else if (__m == 0) { _Tp __P = __poly_legendre_p(__l, __x); _Tp __fact = std::sqrt(_Tp(2 * __l + 1) / (_Tp(4) * __numeric_constants<_Tp>::__pi())); __P *= __fact; return __P; } else if (__x == _Tp(1) || __x == -_Tp(1)) { return _Tp(0); } else { const _Tp __sgn = ( __m % 2 == 1 ? -_Tp(1) : _Tp(1)); const _Tp __y_mp1m_factor = __x * std::sqrt(_Tp(2 * __m + 3)); const _Tp __lncirc = ::std::log1p(-__x * __x); const _Tp __lnpoch = ::std::lgamma(_Tp(__m + _Tp(0.5L))) - ::std::lgamma(_Tp(__m)); const _Tp __lnpre_val = -_Tp(0.25L) * __numeric_constants<_Tp>::__lnpi() + _Tp(0.5L) * (__lnpoch + __m * __lncirc); const _Tp __sr = std::sqrt((_Tp(2) + _Tp(1) / __m) / (_Tp(4) * __numeric_constants<_Tp>::__pi())); _Tp __y_mm = __sgn * __sr * std::exp(__lnpre_val); _Tp __y_mp1m = __y_mp1m_factor * __y_mm; if (__l == __m) return __y_mm; else if (__l == __m + 1) return __y_mp1m; else { _Tp __y_lm = _Tp(0); for (unsigned int __ll = __m + 2; __ll <= __l; ++__ll) { const _Tp __rat1 = _Tp(__ll - __m) / _Tp(__ll + __m); const _Tp __rat2 = _Tp(__ll - __m - 1) / _Tp(__ll + __m - 1); const _Tp __fact1 = std::sqrt(__rat1 * _Tp(2 * __ll + 1) * _Tp(2 * __ll - 1)); const _Tp __fact2 = std::sqrt(__rat1 * __rat2 * _Tp(2 * __ll + 1) / _Tp(2 * __ll - 3)); __y_lm = (__x * __y_mp1m * __fact1 - (__ll + __m - 1) * __y_mm * __fact2) / _Tp(__ll - __m); __y_mm = __y_mp1m; __y_mp1m = __y_lm; } return __y_lm; } } } } } # 54 "/usr/include/c++/15/bits/specfun.h" 2 3 # 1 "/usr/include/c++/15/tr1/modified_bessel_func.tcc" 1 3 # 51 "/usr/include/c++/15/tr1/modified_bessel_func.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 65 "/usr/include/c++/15/tr1/modified_bessel_func.tcc" 3 namespace __detail { # 83 "/usr/include/c++/15/tr1/modified_bessel_func.tcc" 3 template void __bessel_ik(_Tp __nu, _Tp __x, _Tp & __Inu, _Tp & __Knu, _Tp & __Ipnu, _Tp & __Kpnu) { if (__x == _Tp(0)) { if (__nu == _Tp(0)) { __Inu = _Tp(1); __Ipnu = _Tp(0); } else if (__nu == _Tp(1)) { __Inu = _Tp(0); __Ipnu = _Tp(0.5L); } else { __Inu = _Tp(0); __Ipnu = _Tp(0); } __Knu = std::numeric_limits<_Tp>::infinity(); __Kpnu = -std::numeric_limits<_Tp>::infinity(); return; } const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __fp_min = _Tp(10) * std::numeric_limits<_Tp>::epsilon(); const int __max_iter = 15000; const _Tp __x_min = _Tp(2); const int __nl = static_cast(__nu + _Tp(0.5L)); const _Tp __mu = __nu - __nl; const _Tp __mu2 = __mu * __mu; const _Tp __xi = _Tp(1) / __x; const _Tp __xi2 = _Tp(2) * __xi; _Tp __h = __nu * __xi; if ( __h < __fp_min ) __h = __fp_min; _Tp __b = __xi2 * __nu; _Tp __d = _Tp(0); _Tp __c = __h; int __i; for ( __i = 1; __i <= __max_iter; ++__i ) { __b += __xi2; __d = _Tp(1) / (__b + __d); __c = __b + _Tp(1) / __c; const _Tp __del = __c * __d; __h *= __del; if (std::abs(__del - _Tp(1)) < __eps) break; } if (__i > __max_iter) std::__throw_runtime_error(("Argument x too large " "in __bessel_ik; " "try asymptotic expansion.") ); _Tp __Inul = __fp_min; _Tp __Ipnul = __h * __Inul; _Tp __Inul1 = __Inul; _Tp __Ipnu1 = __Ipnul; _Tp __fact = __nu * __xi; for (int __l = __nl; __l >= 1; --__l) { const _Tp __Inutemp = __fact * __Inul + __Ipnul; __fact -= __xi; __Ipnul = __fact * __Inutemp + __Inul; __Inul = __Inutemp; } _Tp __f = __Ipnul / __Inul; _Tp __Kmu, __Knu1; if (__x < __x_min) { const _Tp __x2 = __x / _Tp(2); const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; const _Tp __fact = (std::abs(__pimu) < __eps ? _Tp(1) : __pimu / std::sin(__pimu)); _Tp __d = -std::log(__x2); _Tp __e = __mu * __d; const _Tp __fact2 = (std::abs(__e) < __eps ? _Tp(1) : std::sinh(__e) / __e); _Tp __gam1, __gam2, __gampl, __gammi; __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); _Tp __ff = __fact * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); _Tp __sum = __ff; __e = std::exp(__e); _Tp __p = __e / (_Tp(2) * __gampl); _Tp __q = _Tp(1) / (_Tp(2) * __e * __gammi); _Tp __c = _Tp(1); __d = __x2 * __x2; _Tp __sum1 = __p; int __i; for (__i = 1; __i <= __max_iter; ++__i) { __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); __c *= __d / __i; __p /= __i - __mu; __q /= __i + __mu; const _Tp __del = __c * __ff; __sum += __del; const _Tp __del1 = __c * (__p - __i * __ff); __sum1 += __del1; if (std::abs(__del) < __eps * std::abs(__sum)) break; } if (__i > __max_iter) std::__throw_runtime_error(("Bessel k series failed to converge " "in __bessel_ik.") ); __Kmu = __sum; __Knu1 = __sum1 * __xi2; } else { _Tp __b = _Tp(2) * (_Tp(1) + __x); _Tp __d = _Tp(1) / __b; _Tp __delh = __d; _Tp __h = __delh; _Tp __q1 = _Tp(0); _Tp __q2 = _Tp(1); _Tp __a1 = _Tp(0.25L) - __mu2; _Tp __q = __c = __a1; _Tp __a = -__a1; _Tp __s = _Tp(1) + __q * __delh; int __i; for (__i = 2; __i <= __max_iter; ++__i) { __a -= 2 * (__i - 1); __c = -__a * __c / __i; const _Tp __qnew = (__q1 - __b * __q2) / __a; __q1 = __q2; __q2 = __qnew; __q += __c * __qnew; __b += _Tp(2); __d = _Tp(1) / (__b + __a * __d); __delh = (__b * __d - _Tp(1)) * __delh; __h += __delh; const _Tp __dels = __q * __delh; __s += __dels; if ( std::abs(__dels / __s) < __eps ) break; } if (__i > __max_iter) std::__throw_runtime_error(("Steed's method failed " "in __bessel_ik.") ); __h = __a1 * __h; __Kmu = std::sqrt(__numeric_constants<_Tp>::__pi() / (_Tp(2) * __x)) * std::exp(-__x) / __s; __Knu1 = __Kmu * (__mu + __x + _Tp(0.5L) - __h) * __xi; } _Tp __Kpmu = __mu * __xi * __Kmu - __Knu1; _Tp __Inumu = __xi / (__f * __Kmu - __Kpmu); __Inu = __Inumu * __Inul1 / __Inul; __Ipnu = __Inumu * __Ipnu1 / __Inul; for ( __i = 1; __i <= __nl; ++__i ) { const _Tp __Knutemp = (__mu + __i) * __xi2 * __Knu1 + __Kmu; __Kmu = __Knu1; __Knu1 = __Knutemp; } __Knu = __Kmu; __Kpnu = __nu * __xi * __Kmu - __Knu1; return; } # 267 "/usr/include/c++/15/tr1/modified_bessel_func.tcc" 3 template _Tp __cyl_bessel_i(_Tp __nu, _Tp __x) { if (__nu < _Tp(0) || __x < _Tp(0)) std::__throw_domain_error(("Bad argument " "in __cyl_bessel_i.") ); else if (__isnan(__nu) || __isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) return __cyl_bessel_ij_series(__nu, __x, +_Tp(1), 200); else { _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); return __I_nu; } } # 303 "/usr/include/c++/15/tr1/modified_bessel_func.tcc" 3 template _Tp __cyl_bessel_k(_Tp __nu, _Tp __x) { if (__nu < _Tp(0) || __x < _Tp(0)) std::__throw_domain_error(("Bad argument " "in __cyl_bessel_k.") ); else if (__isnan(__nu) || __isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else { _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); return __K_nu; } } # 337 "/usr/include/c++/15/tr1/modified_bessel_func.tcc" 3 template void __sph_bessel_ik(unsigned int __n, _Tp __x, _Tp & __i_n, _Tp & __k_n, _Tp & __ip_n, _Tp & __kp_n) { const _Tp __nu = _Tp(__n) + _Tp(0.5L); _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() / std::sqrt(__x); __i_n = __factor * __I_nu; __k_n = __factor * __K_nu; __ip_n = __factor * __Ip_nu - __i_n / (_Tp(2) * __x); __kp_n = __factor * __Kp_nu - __k_n / (_Tp(2) * __x); return; } # 373 "/usr/include/c++/15/tr1/modified_bessel_func.tcc" 3 template void __airy(_Tp __x, _Tp & __Ai, _Tp & __Bi, _Tp & __Aip, _Tp & __Bip) { const _Tp __absx = std::abs(__x); const _Tp __rootx = std::sqrt(__absx); const _Tp __z = _Tp(2) * __absx * __rootx / _Tp(3); const _Tp _S_inf = std::numeric_limits<_Tp>::infinity(); if (__isnan(__x)) __Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN(); else if (__z == _S_inf) { __Aip = __Ai = _Tp(0); __Bip = __Bi = _S_inf; } else if (__z == -_S_inf) __Bip = __Aip = __Bi = __Ai = _Tp(0); else if (__x > _Tp(0)) { _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; __bessel_ik(_Tp(1) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); __Ai = __rootx * __K_nu / (__numeric_constants<_Tp>::__sqrt3() * __numeric_constants<_Tp>::__pi()); __Bi = __rootx * (__K_nu / __numeric_constants<_Tp>::__pi() + _Tp(2) * __I_nu / __numeric_constants<_Tp>::__sqrt3()); __bessel_ik(_Tp(2) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); __Aip = -__x * __K_nu / (__numeric_constants<_Tp>::__sqrt3() * __numeric_constants<_Tp>::__pi()); __Bip = __x * (__K_nu / __numeric_constants<_Tp>::__pi() + _Tp(2) * __I_nu / __numeric_constants<_Tp>::__sqrt3()); } else if (__x < _Tp(0)) { _Tp __J_nu, __Jp_nu, __N_nu, __Np_nu; __bessel_jn(_Tp(1) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); __Ai = __rootx * (__J_nu - __N_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); __Bi = -__rootx * (__N_nu + __J_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); __bessel_jn(_Tp(2) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); __Aip = __absx * (__N_nu / __numeric_constants<_Tp>::__sqrt3() + __J_nu) / _Tp(2); __Bip = __absx * (__J_nu / __numeric_constants<_Tp>::__sqrt3() - __N_nu) / _Tp(2); } else { __Ai = _Tp(0.35502805388781723926L); __Bi = __Ai * __numeric_constants<_Tp>::__sqrt3(); __Aip = -_Tp(0.25881940379280679840L); __Bip = -__Aip * __numeric_constants<_Tp>::__sqrt3(); } return; } } } # 55 "/usr/include/c++/15/bits/specfun.h" 2 3 # 1 "/usr/include/c++/15/tr1/poly_hermite.tcc" 1 3 # 42 "/usr/include/c++/15/tr1/poly_hermite.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 56 "/usr/include/c++/15/tr1/poly_hermite.tcc" 3 namespace __detail { # 72 "/usr/include/c++/15/tr1/poly_hermite.tcc" 3 template _Tp __poly_hermite_recursion(unsigned int __n, _Tp __x) { _Tp __H_0 = 1; if (__n == 0) return __H_0; _Tp __H_1 = 2 * __x; if (__n == 1) return __H_1; _Tp __H_n, __H_nm1, __H_nm2; unsigned int __i; for (__H_nm2 = __H_0, __H_nm1 = __H_1, __i = 2; __i <= __n; ++__i) { __H_n = 2 * (__x * __H_nm1 - (__i - 1) * __H_nm2); __H_nm2 = __H_nm1; __H_nm1 = __H_n; } return __H_n; } # 114 "/usr/include/c++/15/tr1/poly_hermite.tcc" 3 template inline _Tp __poly_hermite(unsigned int __n, _Tp __x) { if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else return __poly_hermite_recursion(__n, __x); } } } # 56 "/usr/include/c++/15/bits/specfun.h" 2 3 # 1 "/usr/include/c++/15/tr1/poly_laguerre.tcc" 1 3 # 44 "/usr/include/c++/15/tr1/poly_laguerre.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 60 "/usr/include/c++/15/tr1/poly_laguerre.tcc" 3 namespace __detail { # 75 "/usr/include/c++/15/tr1/poly_laguerre.tcc" 3 template _Tp __poly_laguerre_large_n(unsigned __n, _Tpa __alpha1, _Tp __x) { const _Tp __a = -_Tp(__n); const _Tp __b = _Tp(__alpha1) + _Tp(1); const _Tp __eta = _Tp(2) * __b - _Tp(4) * __a; const _Tp __cos2th = __x / __eta; const _Tp __sin2th = _Tp(1) - __cos2th; const _Tp __th = std::acos(std::sqrt(__cos2th)); const _Tp __pre_h = __numeric_constants<_Tp>::__pi_2() * __numeric_constants<_Tp>::__pi_2() * __eta * __eta * __cos2th * __sin2th; const _Tp __lg_b = ::std::lgamma(_Tp(__n) + __b); const _Tp __lnfact = ::std::lgamma(_Tp(__n + 1)); _Tp __pre_term1 = _Tp(0.5L) * (_Tp(1) - __b) * std::log(_Tp(0.25L) * __x * __eta); _Tp __pre_term2 = _Tp(0.25L) * std::log(__pre_h); _Tp __lnpre = __lg_b - __lnfact + _Tp(0.5L) * __x + __pre_term1 - __pre_term2; _Tp __ser_term1 = std::sin(__a * __numeric_constants<_Tp>::__pi()); _Tp __ser_term2 = std::sin(_Tp(0.25L) * __eta * (_Tp(2) * __th - std::sin(_Tp(2) * __th)) + __numeric_constants<_Tp>::__pi_4()); _Tp __ser = __ser_term1 + __ser_term2; return std::exp(__lnpre) * __ser; } # 129 "/usr/include/c++/15/tr1/poly_laguerre.tcc" 3 template _Tp __poly_laguerre_hyperg(unsigned int __n, _Tpa __alpha1, _Tp __x) { const _Tp __b = _Tp(__alpha1) + _Tp(1); const _Tp __mx = -__x; const _Tp __tc_sgn = (__x < _Tp(0) ? _Tp(1) : ((__n % 2 == 1) ? -_Tp(1) : _Tp(1))); _Tp __tc = _Tp(1); const _Tp __ax = std::abs(__x); for (unsigned int __k = 1; __k <= __n; ++__k) __tc *= (__ax / __k); _Tp __term = __tc * __tc_sgn; _Tp __sum = __term; for (int __k = int(__n) - 1; __k >= 0; --__k) { __term *= ((__b + _Tp(__k)) / _Tp(int(__n) - __k)) * _Tp(__k + 1) / __mx; __sum += __term; } return __sum; } # 185 "/usr/include/c++/15/tr1/poly_laguerre.tcc" 3 template _Tp __poly_laguerre_recursion(unsigned int __n, _Tpa __alpha1, _Tp __x) { _Tp __l_0 = _Tp(1); if (__n == 0) return __l_0; _Tp __l_1 = -__x + _Tp(1) + _Tp(__alpha1); if (__n == 1) return __l_1; _Tp __l_n2 = __l_0; _Tp __l_n1 = __l_1; _Tp __l_n = _Tp(0); for (unsigned int __nn = 2; __nn <= __n; ++__nn) { __l_n = (_Tp(2 * __nn - 1) + _Tp(__alpha1) - __x) * __l_n1 / _Tp(__nn) - (_Tp(__nn - 1) + _Tp(__alpha1)) * __l_n2 / _Tp(__nn); __l_n2 = __l_n1; __l_n1 = __l_n; } return __l_n; } # 244 "/usr/include/c++/15/tr1/poly_laguerre.tcc" 3 template _Tp __poly_laguerre(unsigned int __n, _Tpa __alpha1, _Tp __x) { if (__x < _Tp(0)) std::__throw_domain_error(("Negative argument " "in __poly_laguerre.") ); else if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__n == 0) return _Tp(1); else if (__n == 1) return _Tp(1) + _Tp(__alpha1) - __x; else if (__x == _Tp(0)) { _Tp __prod = _Tp(__alpha1) + _Tp(1); for (unsigned int __k = 2; __k <= __n; ++__k) __prod *= (_Tp(__alpha1) + _Tp(__k)) / _Tp(__k); return __prod; } else if (__n > 10000000 && _Tp(__alpha1) > -_Tp(1) && __x < _Tp(2) * (_Tp(__alpha1) + _Tp(1)) + _Tp(4 * __n)) return __poly_laguerre_large_n(__n, __alpha1, __x); else if (_Tp(__alpha1) >= _Tp(0) || (__x > _Tp(0) && _Tp(__alpha1) < -_Tp(__n + 1))) return __poly_laguerre_recursion(__n, __alpha1, __x); else return __poly_laguerre_hyperg(__n, __alpha1, __x); } # 296 "/usr/include/c++/15/tr1/poly_laguerre.tcc" 3 template inline _Tp __assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) { return __poly_laguerre(__n, __m, __x); } # 316 "/usr/include/c++/15/tr1/poly_laguerre.tcc" 3 template inline _Tp __laguerre(unsigned int __n, _Tp __x) { return __poly_laguerre(__n, 0, __x); } } } # 57 "/usr/include/c++/15/bits/specfun.h" 2 3 # 1 "/usr/include/c++/15/tr1/riemann_zeta.tcc" 1 3 # 47 "/usr/include/c++/15/tr1/riemann_zeta.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 63 "/usr/include/c++/15/tr1/riemann_zeta.tcc" 3 namespace __detail { # 78 "/usr/include/c++/15/tr1/riemann_zeta.tcc" 3 template _Tp __riemann_zeta_sum(_Tp __s) { if (__s < _Tp(1)) std::__throw_domain_error(("Bad argument in zeta sum.")); const unsigned int max_iter = 10000; _Tp __zeta = _Tp(0); for (unsigned int __k = 1; __k < max_iter; ++__k) { _Tp __term = std::pow(static_cast<_Tp>(__k), -__s); if (__term < std::numeric_limits<_Tp>::epsilon()) { break; } __zeta += __term; } return __zeta; } # 115 "/usr/include/c++/15/tr1/riemann_zeta.tcc" 3 template _Tp __riemann_zeta_alt(_Tp __s) { _Tp __sgn = _Tp(1); _Tp __zeta = _Tp(0); for (unsigned int __i = 1; __i < 10000000; ++__i) { _Tp __term = __sgn / std::pow(__i, __s); if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) break; __zeta += __term; __sgn *= _Tp(-1); } __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); return __zeta; } # 157 "/usr/include/c++/15/tr1/riemann_zeta.tcc" 3 template _Tp __riemann_zeta_glob(_Tp __s) { _Tp __zeta = _Tp(0); const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 * std::log(_Tp(10)) - _Tp(1); if (__s < _Tp(0)) { if (::std::fmod(__s,_Tp(2)) == _Tp(0)) return _Tp(0); else { _Tp __zeta = __riemann_zeta_glob(_Tp(1) - __s); __zeta *= std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) * std::exp(::std::lgamma(_Tp(1) - __s)) / __numeric_constants<_Tp>::__pi(); return __zeta; } } _Tp __num = _Tp(0.5L); const unsigned int __maxit = 10000; for (unsigned int __i = 0; __i < __maxit; ++__i) { bool __punt = false; _Tp __sgn = _Tp(1); _Tp __term = _Tp(0); for (unsigned int __j = 0; __j <= __i; ++__j) { _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) - ::std::lgamma(_Tp(1 + __j)) - ::std::lgamma(_Tp(1 + __i - __j)); if (__bincoeff > __max_bincoeff) { __punt = true; break; } __bincoeff = std::exp(__bincoeff); __term += __sgn * __bincoeff * std::pow(_Tp(1 + __j), -__s); __sgn *= _Tp(-1); } if (__punt) break; __term *= __num; __zeta += __term; if (std::abs(__term/__zeta) < __eps) break; __num *= _Tp(0.5L); } __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); return __zeta; } # 252 "/usr/include/c++/15/tr1/riemann_zeta.tcc" 3 template _Tp __riemann_zeta_product(_Tp __s) { static const _Tp __prime[] = { _Tp(2), _Tp(3), _Tp(5), _Tp(7), _Tp(11), _Tp(13), _Tp(17), _Tp(19), _Tp(23), _Tp(29), _Tp(31), _Tp(37), _Tp(41), _Tp(43), _Tp(47), _Tp(53), _Tp(59), _Tp(61), _Tp(67), _Tp(71), _Tp(73), _Tp(79), _Tp(83), _Tp(89), _Tp(97), _Tp(101), _Tp(103), _Tp(107), _Tp(109) }; static const unsigned int __num_primes = sizeof(__prime) / sizeof(_Tp); _Tp __zeta = _Tp(1); for (unsigned int __i = 0; __i < __num_primes; ++__i) { const _Tp __fact = _Tp(1) - std::pow(__prime[__i], -__s); __zeta *= __fact; if (_Tp(1) - __fact < std::numeric_limits<_Tp>::epsilon()) break; } __zeta = _Tp(1) / __zeta; return __zeta; } # 293 "/usr/include/c++/15/tr1/riemann_zeta.tcc" 3 template _Tp __riemann_zeta(_Tp __s) { if (__isnan(__s)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__s == _Tp(1)) return std::numeric_limits<_Tp>::infinity(); else if (__s < -_Tp(19)) { _Tp __zeta = __riemann_zeta_product(_Tp(1) - __s); __zeta *= std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) * std::exp(::std::lgamma(_Tp(1) - __s)) / __numeric_constants<_Tp>::__pi(); return __zeta; } else if (__s < _Tp(20)) { bool __glob = true; if (__glob) return __riemann_zeta_glob(__s); else { if (__s > _Tp(1)) return __riemann_zeta_sum(__s); else { _Tp __zeta = std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) * ::std::tgamma(_Tp(1) - __s) * __riemann_zeta_sum(_Tp(1) - __s); return __zeta; } } } else return __riemann_zeta_product(__s); } # 365 "/usr/include/c++/15/tr1/riemann_zeta.tcc" 3 template _Tp __hurwitz_zeta_glob(_Tp __a, _Tp __s) { _Tp __zeta = _Tp(0); const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 * std::log(_Tp(10)) - _Tp(1); const unsigned int __maxit = 10000; for (unsigned int __i = 0; __i < __maxit; ++__i) { bool __punt = false; _Tp __sgn = _Tp(1); _Tp __term = _Tp(0); for (unsigned int __j = 0; __j <= __i; ++__j) { _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) - ::std::lgamma(_Tp(1 + __j)) - ::std::lgamma(_Tp(1 + __i - __j)); if (__bincoeff > __max_bincoeff) { __punt = true; break; } __bincoeff = std::exp(__bincoeff); __term += __sgn * __bincoeff * std::pow(_Tp(__a + __j), -__s); __sgn *= _Tp(-1); } if (__punt) break; __term /= _Tp(__i + 1); if (std::abs(__term / __zeta) < __eps) break; __zeta += __term; } __zeta /= __s - _Tp(1); return __zeta; } # 430 "/usr/include/c++/15/tr1/riemann_zeta.tcc" 3 template inline _Tp __hurwitz_zeta(_Tp __a, _Tp __s) { return __hurwitz_zeta_glob(__a, __s); } } } # 58 "/usr/include/c++/15/bits/specfun.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 203 "/usr/include/c++/15/bits/specfun.h" 3 inline float assoc_laguerref(unsigned int __n, unsigned int __m, float __x) { return __detail::__assoc_laguerre(__n, __m, __x); } inline long double assoc_laguerrel(unsigned int __n, unsigned int __m, long double __x) { return __detail::__assoc_laguerre(__n, __m, __x); } # 248 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote<_Tp>::__type assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__assoc_laguerre<__type>(__n, __m, __x); } # 264 "/usr/include/c++/15/bits/specfun.h" 3 inline float assoc_legendref(unsigned int __l, unsigned int __m, float __x) { return __detail::__assoc_legendre_p(__l, __m, __x); } inline long double assoc_legendrel(unsigned int __l, unsigned int __m, long double __x) { return __detail::__assoc_legendre_p(__l, __m, __x); } # 294 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote<_Tp>::__type assoc_legendre(unsigned int __l, unsigned int __m, _Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__assoc_legendre_p<__type>(__l, __m, __x); } # 309 "/usr/include/c++/15/bits/specfun.h" 3 inline float betaf(float __a, float __b) { return __detail::__beta(__a, __b); } inline long double betal(long double __a, long double __b) { return __detail::__beta(__a, __b); } # 339 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type beta(_Tpa __a, _Tpb __b) { typedef typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type __type; return __detail::__beta<__type>(__a, __b); } # 355 "/usr/include/c++/15/bits/specfun.h" 3 inline float comp_ellint_1f(float __k) { return __detail::__comp_ellint_1(__k); } inline long double comp_ellint_1l(long double __k) { return __detail::__comp_ellint_1(__k); } # 387 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote<_Tp>::__type comp_ellint_1(_Tp __k) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__comp_ellint_1<__type>(__k); } # 403 "/usr/include/c++/15/bits/specfun.h" 3 inline float comp_ellint_2f(float __k) { return __detail::__comp_ellint_2(__k); } inline long double comp_ellint_2l(long double __k) { return __detail::__comp_ellint_2(__k); } # 434 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote<_Tp>::__type comp_ellint_2(_Tp __k) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__comp_ellint_2<__type>(__k); } # 450 "/usr/include/c++/15/bits/specfun.h" 3 inline float comp_ellint_3f(float __k, float __nu) { return __detail::__comp_ellint_3(__k, __nu); } inline long double comp_ellint_3l(long double __k, long double __nu) { return __detail::__comp_ellint_3(__k, __nu); } # 485 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type comp_ellint_3(_Tp __k, _Tpn __nu) { typedef typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type __type; return __detail::__comp_ellint_3<__type>(__k, __nu); } # 501 "/usr/include/c++/15/bits/specfun.h" 3 inline float cyl_bessel_if(float __nu, float __x) { return __detail::__cyl_bessel_i(__nu, __x); } inline long double cyl_bessel_il(long double __nu, long double __x) { return __detail::__cyl_bessel_i(__nu, __x); } # 531 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type cyl_bessel_i(_Tpnu __nu, _Tp __x) { typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; return __detail::__cyl_bessel_i<__type>(__nu, __x); } # 547 "/usr/include/c++/15/bits/specfun.h" 3 inline float cyl_bessel_jf(float __nu, float __x) { return __detail::__cyl_bessel_j(__nu, __x); } inline long double cyl_bessel_jl(long double __nu, long double __x) { return __detail::__cyl_bessel_j(__nu, __x); } # 577 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type cyl_bessel_j(_Tpnu __nu, _Tp __x) { typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; return __detail::__cyl_bessel_j<__type>(__nu, __x); } # 593 "/usr/include/c++/15/bits/specfun.h" 3 inline float cyl_bessel_kf(float __nu, float __x) { return __detail::__cyl_bessel_k(__nu, __x); } inline long double cyl_bessel_kl(long double __nu, long double __x) { return __detail::__cyl_bessel_k(__nu, __x); } # 629 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type cyl_bessel_k(_Tpnu __nu, _Tp __x) { typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; return __detail::__cyl_bessel_k<__type>(__nu, __x); } # 645 "/usr/include/c++/15/bits/specfun.h" 3 inline float cyl_neumannf(float __nu, float __x) { return __detail::__cyl_neumann_n(__nu, __x); } inline long double cyl_neumannl(long double __nu, long double __x) { return __detail::__cyl_neumann_n(__nu, __x); } # 677 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type cyl_neumann(_Tpnu __nu, _Tp __x) { typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; return __detail::__cyl_neumann_n<__type>(__nu, __x); } # 693 "/usr/include/c++/15/bits/specfun.h" 3 inline float ellint_1f(float __k, float __phi) { return __detail::__ellint_1(__k, __phi); } inline long double ellint_1l(long double __k, long double __phi) { return __detail::__ellint_1(__k, __phi); } # 725 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type ellint_1(_Tp __k, _Tpp __phi) { typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; return __detail::__ellint_1<__type>(__k, __phi); } # 741 "/usr/include/c++/15/bits/specfun.h" 3 inline float ellint_2f(float __k, float __phi) { return __detail::__ellint_2(__k, __phi); } inline long double ellint_2l(long double __k, long double __phi) { return __detail::__ellint_2(__k, __phi); } # 773 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type ellint_2(_Tp __k, _Tpp __phi) { typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; return __detail::__ellint_2<__type>(__k, __phi); } # 789 "/usr/include/c++/15/bits/specfun.h" 3 inline float ellint_3f(float __k, float __nu, float __phi) { return __detail::__ellint_3(__k, __nu, __phi); } inline long double ellint_3l(long double __k, long double __nu, long double __phi) { return __detail::__ellint_3(__k, __nu, __phi); } # 826 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type ellint_3(_Tp __k, _Tpn __nu, _Tpp __phi) { typedef typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type __type; return __detail::__ellint_3<__type>(__k, __nu, __phi); } # 841 "/usr/include/c++/15/bits/specfun.h" 3 inline float expintf(float __x) { return __detail::__expint(__x); } inline long double expintl(long double __x) { return __detail::__expint(__x); } # 866 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote<_Tp>::__type expint(_Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__expint<__type>(__x); } # 882 "/usr/include/c++/15/bits/specfun.h" 3 inline float hermitef(unsigned int __n, float __x) { return __detail::__poly_hermite(__n, __x); } inline long double hermitel(unsigned int __n, long double __x) { return __detail::__poly_hermite(__n, __x); } # 914 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote<_Tp>::__type hermite(unsigned int __n, _Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__poly_hermite<__type>(__n, __x); } # 930 "/usr/include/c++/15/bits/specfun.h" 3 inline float laguerref(unsigned int __n, float __x) { return __detail::__laguerre(__n, __x); } inline long double laguerrel(unsigned int __n, long double __x) { return __detail::__laguerre(__n, __x); } # 958 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote<_Tp>::__type laguerre(unsigned int __n, _Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__laguerre<__type>(__n, __x); } # 974 "/usr/include/c++/15/bits/specfun.h" 3 inline float legendref(unsigned int __l, float __x) { return __detail::__poly_legendre_p(__l, __x); } inline long double legendrel(unsigned int __l, long double __x) { return __detail::__poly_legendre_p(__l, __x); } # 1003 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote<_Tp>::__type legendre(unsigned int __l, _Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__poly_legendre_p<__type>(__l, __x); } # 1019 "/usr/include/c++/15/bits/specfun.h" 3 inline float riemann_zetaf(float __s) { return __detail::__riemann_zeta(__s); } inline long double riemann_zetal(long double __s) { return __detail::__riemann_zeta(__s); } # 1054 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote<_Tp>::__type riemann_zeta(_Tp __s) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__riemann_zeta<__type>(__s); } # 1070 "/usr/include/c++/15/bits/specfun.h" 3 inline float sph_besself(unsigned int __n, float __x) { return __detail::__sph_bessel(__n, __x); } inline long double sph_bessell(unsigned int __n, long double __x) { return __detail::__sph_bessel(__n, __x); } # 1098 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote<_Tp>::__type sph_bessel(unsigned int __n, _Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__sph_bessel<__type>(__n, __x); } # 1114 "/usr/include/c++/15/bits/specfun.h" 3 inline float sph_legendref(unsigned int __l, unsigned int __m, float __theta) { return __detail::__sph_legendre(__l, __m, __theta); } # 1125 "/usr/include/c++/15/bits/specfun.h" 3 inline long double sph_legendrel(unsigned int __l, unsigned int __m, long double __theta) { return __detail::__sph_legendre(__l, __m, __theta); } # 1145 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote<_Tp>::__type sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__sph_legendre<__type>(__l, __m, __theta); } # 1161 "/usr/include/c++/15/bits/specfun.h" 3 inline float sph_neumannf(unsigned int __n, float __x) { return __detail::__sph_neumann(__n, __x); } inline long double sph_neumannl(unsigned int __n, long double __x) { return __detail::__sph_neumann(__n, __x); } # 1189 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote<_Tp>::__type sph_neumann(unsigned int __n, _Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__sph_neumann<__type>(__n, __x); } } namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { # 1216 "/usr/include/c++/15/bits/specfun.h" 3 inline float airy_aif(float __x) { float __Ai, __Bi, __Aip, __Bip; std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); return __Ai; } inline long double airy_ail(long double __x) { long double __Ai, __Bi, __Aip, __Bip; std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); return __Ai; } template inline typename __gnu_cxx::__promote<_Tp>::__type airy_ai(_Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; __type __Ai, __Bi, __Aip, __Bip; std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); return __Ai; } inline float airy_bif(float __x) { float __Ai, __Bi, __Aip, __Bip; std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); return __Bi; } inline long double airy_bil(long double __x) { long double __Ai, __Bi, __Aip, __Bip; std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); return __Bi; } template inline typename __gnu_cxx::__promote<_Tp>::__type airy_bi(_Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; __type __Ai, __Bi, __Aip, __Bip; std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); return __Bi; } # 1292 "/usr/include/c++/15/bits/specfun.h" 3 inline float conf_hypergf(float __a, float __c, float __x) { return std::__detail::__conf_hyperg(__a, __c, __x); } # 1303 "/usr/include/c++/15/bits/specfun.h" 3 inline long double conf_hypergl(long double __a, long double __c, long double __x) { return std::__detail::__conf_hyperg(__a, __c, __x); } # 1323 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type conf_hyperg(_Tpa __a, _Tpc __c, _Tp __x) { typedef typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type __type; return std::__detail::__conf_hyperg<__type>(__a, __c, __x); } # 1340 "/usr/include/c++/15/bits/specfun.h" 3 inline float hypergf(float __a, float __b, float __c, float __x) { return std::__detail::__hyperg(__a, __b, __c, __x); } # 1351 "/usr/include/c++/15/bits/specfun.h" 3 inline long double hypergl(long double __a, long double __b, long double __c, long double __x) { return std::__detail::__hyperg(__a, __b, __c, __x); } # 1372 "/usr/include/c++/15/bits/specfun.h" 3 template inline typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp>::__type hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x) { typedef typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp> ::__type __type; return std::__detail::__hyperg<__type>(__a, __b, __c, __x); } } # 3914 "/usr/include/c++/15/cmath" 2 3 } # 55 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" 2 # 1 "/usr/include/c++/15/stdexcept" 1 3 # 40 "/usr/include/c++/15/stdexcept" 3 # 1 "/usr/include/c++/15/exception" 1 3 # 41 "/usr/include/c++/15/exception" 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 42 "/usr/include/c++/15/exception" 2 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { # 56 "/usr/include/c++/15/exception" 3 class bad_exception : public exception { public: bad_exception() noexcept { } virtual ~bad_exception() noexcept; virtual const char* what() const noexcept; }; typedef void (*terminate_handler) (); terminate_handler set_terminate(terminate_handler) noexcept; terminate_handler get_terminate() noexcept; void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); # 126 "/usr/include/c++/15/exception" 3 __attribute__ ((__deprecated__ ("use '" "std::uncaught_exceptions()" "' instead"))) bool uncaught_exception() noexcept __attribute__ ((__pure__)); int uncaught_exceptions() noexcept __attribute__ ((__pure__)); } namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { # 160 "/usr/include/c++/15/exception" 3 void __verbose_terminate_handler(); } } # 1 "/usr/include/c++/15/bits/exception_ptr.h" 1 3 # 36 "/usr/include/c++/15/bits/exception_ptr.h" 3 # 1 "/usr/include/c++/15/bits/cxxabi_init_exception.h" 1 3 # 38 "/usr/include/c++/15/bits/cxxabi_init_exception.h" 3 #pragma GCC visibility push(default) # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h" 1 3 4 # 41 "/usr/include/c++/15/bits/cxxabi_init_exception.h" 2 3 # 52 "/usr/include/c++/15/bits/cxxabi_init_exception.h" 3 namespace std { class type_info; } namespace __cxxabiv1 { struct __cxa_refcounted_exception; extern "C" { void* __cxa_allocate_exception(size_t) noexcept; void __cxa_free_exception(void*) noexcept; __cxa_refcounted_exception* __cxa_init_primary_exception(void *__object, std::type_info *__tinfo, void ( *__dest) (void *)) noexcept; } } #pragma GCC visibility pop # 37 "/usr/include/c++/15/bits/exception_ptr.h" 2 3 # 1 "/usr/include/c++/15/typeinfo" 1 3 # 38 "/usr/include/c++/15/typeinfo" 3 # 1 "/usr/include/c++/15/bits/hash_bytes.h" 1 3 # 39 "/usr/include/c++/15/bits/hash_bytes.h" 3 namespace std { size_t _Hash_bytes(const void* __ptr, size_t __len, size_t __seed); size_t _Fnv_hash_bytes(const void* __ptr, size_t __len, size_t __seed); } # 39 "/usr/include/c++/15/typeinfo" 2 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 43 "/usr/include/c++/15/typeinfo" 2 3 #pragma GCC visibility push(default) extern "C++" { namespace __cxxabiv1 { class __class_type_info; } # 85 "/usr/include/c++/15/typeinfo" 3 namespace std { class type_info { public: virtual ~type_info(); const char* name() const noexcept { return __name[0] == '*' ? __name + 1 : __name; } bool before(const type_info& __arg) const noexcept; constexpr bool operator==(const type_info& __arg) const noexcept; size_t hash_code() const noexcept { return _Hash_bytes(name(), __builtin_strlen(name()), static_cast(0xc70f6907UL)); } virtual bool __is_pointer_p() const; virtual bool __is_function_p() const; virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, unsigned __outer) const; virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, void **__obj_ptr) const; protected: const char *__name; explicit type_info(const char *__n): __name(__n) { } private: type_info& operator=(const type_info&) = delete; type_info(const type_info&) = delete; # 168 "/usr/include/c++/15/typeinfo" 3 }; inline bool type_info::before(const type_info& __arg) const noexcept { if (__name[0] != '*' || __arg.__name[0] != '*') return __builtin_strcmp (__name, __arg.__name) < 0; # 188 "/usr/include/c++/15/typeinfo" 3 return __name < __arg.__name; } constexpr inline bool type_info::operator==(const type_info& __arg) const noexcept { if (std::__is_constant_evaluated()) return this == &__arg; if (__name == __arg.__name) return true; return __name[0] != '*' && __builtin_strcmp (__name, __arg.name()) == 0; } # 224 "/usr/include/c++/15/typeinfo" 3 class bad_cast : public exception { public: bad_cast() noexcept { } virtual ~bad_cast() noexcept; virtual const char* what() const noexcept; }; class bad_typeid : public exception { public: bad_typeid () noexcept { } virtual ~bad_typeid() noexcept; virtual const char* what() const noexcept; }; } } #pragma GCC visibility pop # 38 "/usr/include/c++/15/bits/exception_ptr.h" 2 3 # 50 "/usr/include/c++/15/bits/exception_ptr.h" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { class type_info; namespace __exception_ptr { class exception_ptr; } using __exception_ptr::exception_ptr; # 75 "/usr/include/c++/15/bits/exception_ptr.h" 3 exception_ptr current_exception() noexcept; template exception_ptr make_exception_ptr(_Ex) noexcept; void rethrow_exception(exception_ptr) __attribute__ ((__noreturn__)); namespace __exception_ptr { using std::rethrow_exception; # 97 "/usr/include/c++/15/bits/exception_ptr.h" 3 class exception_ptr { void* _M_exception_object; explicit exception_ptr(void* __e) noexcept; void _M_addref() noexcept; void _M_release() noexcept; void *_M_get() const noexcept __attribute__ ((__pure__)); friend exception_ptr std::current_exception() noexcept; friend void std::rethrow_exception(exception_ptr); template friend exception_ptr std::make_exception_ptr(_Ex) noexcept; public: exception_ptr() noexcept; exception_ptr(const exception_ptr&) noexcept; exception_ptr(nullptr_t) noexcept : _M_exception_object(nullptr) { } exception_ptr(exception_ptr&& __o) noexcept : _M_exception_object(__o._M_exception_object) { __o._M_exception_object = nullptr; } # 135 "/usr/include/c++/15/bits/exception_ptr.h" 3 exception_ptr& operator=(const exception_ptr&) noexcept; exception_ptr& operator=(exception_ptr&& __o) noexcept { exception_ptr(static_cast(__o)).swap(*this); return *this; } ~exception_ptr() noexcept; void swap(exception_ptr&) noexcept; # 161 "/usr/include/c++/15/bits/exception_ptr.h" 3 explicit operator bool() const noexcept { return _M_exception_object; } friend bool operator==(const exception_ptr&, const exception_ptr&) noexcept = default; # 181 "/usr/include/c++/15/bits/exception_ptr.h" 3 const class std::type_info* __cxa_exception_type() const noexcept __attribute__ ((__pure__)); }; inline exception_ptr::exception_ptr() noexcept : _M_exception_object(0) { } inline exception_ptr::exception_ptr(const exception_ptr& __other) noexcept : _M_exception_object(__other._M_exception_object) { if (_M_exception_object) _M_addref(); } inline exception_ptr::~exception_ptr() noexcept { if (_M_exception_object) _M_release(); } inline exception_ptr& exception_ptr::operator=(const exception_ptr& __other) noexcept { exception_ptr(__other).swap(*this); return *this; } inline void exception_ptr::swap(exception_ptr &__other) noexcept { void *__tmp = _M_exception_object; _M_exception_object = __other._M_exception_object; __other._M_exception_object = __tmp; } inline void swap(exception_ptr& __lhs, exception_ptr& __rhs) { __lhs.swap(__rhs); } template inline void __dest_thunk(void* __x) { static_cast<_Ex*>(__x)->~_Ex(); } } using __exception_ptr::swap; template exception_ptr make_exception_ptr(_Ex __ex) noexcept { # 267 "/usr/include/c++/15/bits/exception_ptr.h" 3 try { throw __ex; } catch(...) { return current_exception(); } } # 290 "/usr/include/c++/15/bits/exception_ptr.h" 3 } } # 169 "/usr/include/c++/15/exception" 2 3 # 1 "/usr/include/c++/15/bits/nested_exception.h" 1 3 # 40 "/usr/include/c++/15/bits/nested_exception.h" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { # 59 "/usr/include/c++/15/bits/nested_exception.h" 3 class nested_exception { exception_ptr _M_ptr; public: nested_exception() noexcept : _M_ptr(current_exception()) { } nested_exception(const nested_exception&) noexcept = default; nested_exception& operator=(const nested_exception&) noexcept = default; virtual ~nested_exception() noexcept; [[noreturn]] void rethrow_nested() const { if (_M_ptr) rethrow_exception(_M_ptr); std::terminate(); } exception_ptr nested_ptr() const noexcept { return _M_ptr; } }; template struct _Nested_exception : public _Except, public nested_exception { explicit _Nested_exception(const _Except& __ex) : _Except(__ex) { } explicit _Nested_exception(_Except&& __ex) : _Except(static_cast<_Except&&>(__ex)) { } }; # 145 "/usr/include/c++/15/bits/nested_exception.h" 3 template [[noreturn]] inline void throw_with_nested(_Tp&& __t) { using _Up = typename decay<_Tp>::type; using _CopyConstructible = __and_, is_move_constructible<_Up>>; static_assert(_CopyConstructible::value, "throw_with_nested argument must be CopyConstructible"); if constexpr (is_class_v<_Up>) if constexpr (!is_final_v<_Up>) if constexpr (!is_base_of_v) throw _Nested_exception<_Up>{std::forward<_Tp>(__t)}; throw std::forward<_Tp>(__t); } # 203 "/usr/include/c++/15/bits/nested_exception.h" 3 template [[__gnu__::__always_inline__]] inline void rethrow_if_nested(const _Ex& __ex) { const _Ex* __ptr = __builtin_addressof(__ex); # 223 "/usr/include/c++/15/bits/nested_exception.h" 3 if constexpr (!is_polymorphic_v<_Ex>) return; else if constexpr (is_base_of_v && !is_convertible_v<_Ex*, nested_exception*>) return; else if constexpr (!is_base_of_v) return; else if (auto __ne_ptr = dynamic_cast(__ptr)) __ne_ptr->rethrow_nested(); } } } # 170 "/usr/include/c++/15/exception" 2 3 # 41 "/usr/include/c++/15/stdexcept" 2 3 # 1 "/usr/include/c++/15/string" 1 3 # 43 "/usr/include/c++/15/string" 3 # 1 "/usr/include/c++/15/bits/stringfwd.h" 1 3 # 42 "/usr/include/c++/15/bits/stringfwd.h" 3 # 1 "/usr/include/c++/15/bits/memoryfwd.h" 1 3 # 52 "/usr/include/c++/15/bits/memoryfwd.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 66 "/usr/include/c++/15/bits/memoryfwd.h" 3 template class allocator; template<> class allocator; template struct uses_allocator; template struct allocator_traits; } # 43 "/usr/include/c++/15/bits/stringfwd.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template struct char_traits; template<> struct char_traits; template<> struct char_traits; template<> struct char_traits; template<> struct char_traits; template<> struct char_traits; namespace __cxx11 { template, typename _Alloc = allocator<_CharT> > class basic_string; } typedef basic_string string; typedef basic_string wstring; typedef basic_string u8string; typedef basic_string u16string; typedef basic_string u32string; } # 44 "/usr/include/c++/15/string" 2 3 # 1 "/usr/include/c++/15/bits/char_traits.h" 1 3 # 44 "/usr/include/c++/15/bits/char_traits.h" 3 # 1 "/usr/include/c++/15/bits/postypes.h" 1 3 # 42 "/usr/include/c++/15/bits/postypes.h" 3 # 1 "/usr/include/c++/15/cwchar" 1 3 # 49 "/usr/include/c++/15/cwchar" 3 # 1 "/usr/include/wchar.h" 1 3 4 # 27 "/usr/include/wchar.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4 # 28 "/usr/include/wchar.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h" 1 3 4 # 36 "/usr/include/wchar.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stdarg.h" 1 3 4 # 39 "/usr/include/wchar.h" 2 3 4 # 52 "/usr/include/wchar.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/wint_t.h" 1 3 4 # 20 "/usr/include/x86_64-linux-gnu/bits/types/wint_t.h" 3 4 typedef unsigned int wint_t; # 53 "/usr/include/wchar.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h" 1 3 4 typedef __mbstate_t mbstate_t; # 54 "/usr/include/wchar.h" 2 3 4 # 94 "/usr/include/wchar.h" 3 4 extern "C" { struct tm; extern wchar_t *wcscpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern wchar_t *wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern size_t wcslcpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 3))); extern size_t wcslcat (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__read_write__, 1, 3))); extern wchar_t *wcscat (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern wchar_t *wcsncat (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true); extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, locale_t __loc) noexcept (true); extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, size_t __n, locale_t __loc) noexcept (true); extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); extern size_t wcsxfrm (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true); extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, locale_t __loc) noexcept (true); extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, size_t __n, locale_t __loc) noexcept (true); extern wchar_t *wcsdup (const wchar_t *__s) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1))); extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); # 202 "/usr/include/wchar.h" 3 4 extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); # 218 "/usr/include/wchar.h" 3 4 extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) noexcept (true) __attribute__ ((__pure__)); extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) noexcept (true) __attribute__ ((__pure__)); extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) noexcept (true) __attribute__ ((__pure__)); extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, const wchar_t *__accept) noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); # 247 "/usr/include/wchar.h" 3 4 extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, const wchar_t *__needle) noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); # 263 "/usr/include/wchar.h" 3 4 extern wchar_t *wcstok (wchar_t *__restrict __s, const wchar_t *__restrict __delim, wchar_t **__restrict __ptr) noexcept (true); extern size_t wcslen (const wchar_t *__s) noexcept (true) __attribute__ ((__pure__)); extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, const wchar_t *__needle) noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); # 286 "/usr/include/wchar.h" 3 4 extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) noexcept (true) __attribute__ ((__pure__)); extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); # 308 "/usr/include/wchar.h" 3 4 extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) __attribute__ ((__pure__)); extern wchar_t *wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true); extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true); extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true); extern wchar_t *wmempcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true); extern wint_t btowc (int __c) noexcept (true); extern int wctob (wint_t __c) noexcept (true); extern int mbsinit (const mbstate_t *__ps) noexcept (true) __attribute__ ((__pure__)); extern size_t mbrtowc (wchar_t *__restrict __pwc, const char *__restrict __s, size_t __n, mbstate_t *__restrict __p) noexcept (true); extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, mbstate_t *__restrict __ps) noexcept (true); extern size_t __mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) noexcept (true); extern size_t mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) noexcept (true); extern wint_t __btowc_alias (int __c) __asm ("btowc"); extern __inline __attribute__ ((__gnu_inline__)) wint_t __attribute__ ((__leaf__)) btowc (int __c) noexcept (true) { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f' ? (wint_t) __c : __btowc_alias (__c)); } extern int __wctob_alias (wint_t __c) __asm ("wctob"); extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) wctob (wint_t __wc) noexcept (true) { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' ? (int) __wc : __wctob_alias (__wc)); } extern __inline __attribute__ ((__gnu_inline__)) size_t __attribute__ ((__leaf__)) mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) noexcept (true) { return (__ps != __null ? mbrtowc (__null, __s, __n, __ps) : __mbrlen (__s, __n, __null)); } extern size_t mbsrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true); extern size_t wcsrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true); extern size_t mbsnrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) noexcept (true); extern size_t wcsnrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) noexcept (true); extern int wcwidth (wchar_t __c) noexcept (true); extern int wcswidth (const wchar_t *__s, size_t __n) noexcept (true); extern double wcstod (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); extern float wcstof (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); extern long double wcstold (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); # 447 "/usr/include/wchar.h" 3 4 extern _Float32 wcstof32 (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); extern _Float64 wcstof64 (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); extern _Float128 wcstof128 (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); extern _Float32x wcstof32x (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); extern _Float64x wcstof64x (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); # 480 "/usr/include/wchar.h" 3 4 extern long int wcstol (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true); extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true); __extension__ extern long long int wcstoll (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true); __extension__ extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true); __extension__ extern long long int wcstoq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true); __extension__ extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true); extern long int wcstol (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstol") ; extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoul") ; __extension__ extern long long int wcstoll (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoll") ; __extension__ extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoull") ; __extension__ extern long long int wcstoq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoll") ; __extension__ extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoull") ; # 586 "/usr/include/wchar.h" 3 4 extern long int wcstol_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, locale_t __loc) noexcept (true); extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, locale_t __loc) noexcept (true); __extension__ extern long long int wcstoll_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, locale_t __loc) noexcept (true); __extension__ extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, locale_t __loc) noexcept (true); extern long int wcstol_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_wcstol_l") ; extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_wcstoul_l") ; __extension__ extern long long int wcstoll_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_wcstoll_l") ; __extension__ extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_wcstoull_l") ; # 655 "/usr/include/wchar.h" 3 4 extern double wcstod_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); extern float wcstof_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); extern long double wcstold_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); # 674 "/usr/include/wchar.h" 3 4 extern _Float32 wcstof32_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); extern _Float64 wcstof64_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); extern _Float128 wcstof128_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); extern _Float32x wcstof32x_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); extern _Float64x wcstof64x_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); # 714 "/usr/include/wchar.h" 3 4 extern wchar_t *wcpcpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true); extern wchar_t *wcpncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true); # 743 "/usr/include/wchar.h" 3 4 extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))); extern int fwide (__FILE *__fp, int __mode) noexcept (true); extern int fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) ; extern int wprintf (const wchar_t *__restrict __format, ...) ; extern int swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __format, ...) noexcept (true) ; extern int vfwprintf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) ; extern int vwprintf (const wchar_t *__restrict __format, __gnuc_va_list __arg) ; extern int vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) ; extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) ; extern int wscanf (const wchar_t *__restrict __format, ...) ; extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) noexcept (true) ; # 820 "/usr/include/wchar.h" 3 4 extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc23_fwscanf") ; extern int wscanf (const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc23_wscanf") ; extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc23_swscanf") ; # 876 "/usr/include/wchar.h" 3 4 extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) ; extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) ; extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) ; # 900 "/usr/include/wchar.h" 3 4 extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vfwscanf") ; extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vwscanf") ; extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc23_vswscanf") ; # 960 "/usr/include/wchar.h" 3 4 extern wint_t fgetwc (__FILE *__stream); extern wint_t getwc (__FILE *__stream); extern wint_t getwchar (void); extern wint_t fputwc (wchar_t __wc, __FILE *__stream); extern wint_t putwc (wchar_t __wc, __FILE *__stream); extern wint_t putwchar (wchar_t __wc); extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, __FILE *__restrict __stream); extern int fputws (const wchar_t *__restrict __ws, __FILE *__restrict __stream); extern wint_t ungetwc (wint_t __wc, __FILE *__stream); # 1015 "/usr/include/wchar.h" 3 4 extern wint_t getwc_unlocked (__FILE *__stream); extern wint_t getwchar_unlocked (void); extern wint_t fgetwc_unlocked (__FILE *__stream); extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); # 1041 "/usr/include/wchar.h" 3 4 extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); extern wint_t putwchar_unlocked (wchar_t __wc); # 1051 "/usr/include/wchar.h" 3 4 extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, __FILE *__restrict __stream); extern int fputws_unlocked (const wchar_t *__restrict __ws, __FILE *__restrict __stream); extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, const wchar_t *__restrict __format, const struct tm *__restrict __tp) noexcept (true); extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, const wchar_t *__restrict __format, const struct tm *__restrict __tp, locale_t __loc) noexcept (true); # 1 "/usr/include/x86_64-linux-gnu/bits/wchar2-decl.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/wchar2-decl.h" 3 4 extern wchar_t *__wmemcpy_chk (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n, size_t __ns1) noexcept (true); extern wchar_t *__wmemcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmemcpy") ; extern wchar_t *__wmemcpy_chk_warn (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n, size_t __ns1) noexcept (true) __asm__ ("" "__wmemcpy_chk") __attribute__((__warning__ ("wmemcpy called with length bigger than size of destination " "buffer"))) ; extern wchar_t *__wmemmove_chk (wchar_t *__s1, const wchar_t *__s2, size_t __n, size_t __ns1) noexcept (true); extern wchar_t *__wmemmove_alias (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) __asm__ ("" "wmemmove") ; extern wchar_t *__wmemmove_chk_warn (wchar_t *__s1, const wchar_t *__s2, size_t __n, size_t __ns1) noexcept (true) __asm__ ("" "__wmemmove_chk") __attribute__((__warning__ ("wmemmove called with length bigger than size of destination " "buffer"))) ; extern wchar_t *__wmempcpy_chk (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n, size_t __ns1) noexcept (true); extern wchar_t *__wmempcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmempcpy") ; extern wchar_t *__wmempcpy_chk_warn (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n, size_t __ns1) noexcept (true) __asm__ ("" "__wmempcpy_chk") __attribute__((__warning__ ("wmempcpy called with length bigger than size of destination " "buffer"))) ; extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) noexcept (true); extern wchar_t *__wmemset_alias (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) __asm__ ("" "wmemset") ; extern wchar_t *__wmemset_chk_warn (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) noexcept (true) __asm__ ("" "__wmemset_chk") __attribute__((__warning__ ("wmemset called with length bigger than size of destination " "buffer"))) ; extern wchar_t *__wcscpy_chk (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true); extern wchar_t *__wcscpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscpy") ; extern wchar_t *__wcpcpy_chk (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __destlen) noexcept (true); extern wchar_t *__wcpcpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcpcpy") ; extern wchar_t *__wcsncpy_chk (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n, size_t __destlen) noexcept (true); extern wchar_t *__wcsncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncpy") ; extern wchar_t *__wcsncpy_chk_warn (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n, size_t __destlen) noexcept (true) __asm__ ("" "__wcsncpy_chk") __attribute__((__warning__ ("wcsncpy called with length bigger than size of destination " "buffer"))) ; extern wchar_t *__wcpncpy_chk (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n, size_t __destlen) noexcept (true); extern wchar_t *__wcpncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcpncpy") ; extern wchar_t *__wcpncpy_chk_warn (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n, size_t __destlen) noexcept (true) __asm__ ("" "__wcpncpy_chk") __attribute__((__warning__ ("wcpncpy called with length bigger than size of destination " "buffer"))) ; extern wchar_t *__wcscat_chk (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __destlen) noexcept (true); extern wchar_t *__wcscat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscat") ; extern wchar_t *__wcsncat_chk (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n, size_t __destlen) noexcept (true); extern wchar_t *__wcsncat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncat") ; extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, int __flag, size_t __s_len, const wchar_t *__restrict __format, ...) noexcept (true) ; extern int __swprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) __asm__ ("" "swprintf") ; extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, int __flag, size_t __s_len, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) ; extern int __vswprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) __asm__ ("" "vswprintf") ; extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag, const wchar_t *__restrict __format, ...); extern int __wprintf_chk (int __flag, const wchar_t *__restrict __format, ...); extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag, const wchar_t *__restrict __format, __gnuc_va_list __ap); extern int __vwprintf_chk (int __flag, const wchar_t *__restrict __format, __gnuc_va_list __ap); extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); extern wchar_t *__fgetws_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws") __attribute__ ((__warn_unused_result__)); extern wchar_t *__fgetws_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws called with bigger size than length " "of destination buffer"))) ; extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); extern wchar_t *__fgetws_unlocked_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws_unlocked") __attribute__ ((__warn_unused_result__)); extern wchar_t *__fgetws_unlocked_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_unlocked_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws_unlocked called with bigger size than length " "of destination buffer"))) ; extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __p, size_t __buflen) noexcept (true) __attribute__ ((__warn_unused_result__)); extern size_t __wcrtomb_alias (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcrtomb") __attribute__ ((__warn_unused_result__)); extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) noexcept (true); extern size_t __mbsrtowcs_alias (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "mbsrtowcs") ; extern size_t __mbsrtowcs_chk_warn (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) noexcept (true) __asm__ ("" "__mbsrtowcs_chk") __attribute__((__warning__ ("mbsrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) ; extern size_t __wcsrtombs_chk (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) noexcept (true); extern size_t __wcsrtombs_alias (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcsrtombs") ; extern size_t __wcsrtombs_chk_warn (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) noexcept (true) __asm__ ("" "__wcsrtombs_chk") __attribute__((__warning__ ("wcsrtombs called with dst buffer smaller than len"))); extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) noexcept (true); extern size_t __mbsnrtowcs_alias (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "mbsnrtowcs") ; extern size_t __mbsnrtowcs_chk_warn (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) noexcept (true) __asm__ ("" "__mbsnrtowcs_chk") __attribute__((__warning__ ("mbsnrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) ; extern size_t __wcsnrtombs_chk (char *__restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) noexcept (true); extern size_t __wcsnrtombs_alias (char *__restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcsnrtombs") ; extern size_t __wcsnrtombs_chk_warn (char *__restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) noexcept (true) __asm__ ("" "__wcsnrtombs_chk") __attribute__((__warning__ ("wcsnrtombs called with dst buffer smaller than len"))); extern size_t __wcslcpy_chk (wchar_t *__dest, const wchar_t *__src, size_t __n, size_t __destlen) noexcept (true); extern size_t __wcslcpy_alias (wchar_t *__dest, const wchar_t *__src, size_t __n) noexcept (true) __asm__ ("" "wcslcpy") ; extern size_t __wcslcat_chk (wchar_t *__dest, const wchar_t *__src, size_t __n, size_t __destlen) noexcept (true); extern size_t __wcslcat_alias (wchar_t *__dest, const wchar_t *__src, size_t __n) noexcept (true) __asm__ ("" "wcslcat") ; # 1085 "/usr/include/wchar.h" 2 3 4 # 1095 "/usr/include/wchar.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wchar2.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/wchar2.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wmemcpy (wchar_t * __restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) { return (((__builtin_constant_p (__builtin_dynamic_object_size (__s1, 0)) && (__builtin_dynamic_object_size (__s1, 0)) == (long unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= ((__builtin_dynamic_object_size (__s1, 0))) / ((sizeof (wchar_t))))) && (((long unsigned int) (__n)) <= ((__builtin_dynamic_object_size (__s1, 0))) / ((sizeof (wchar_t)))))) ? __wmemcpy_alias (__s1, __s2, __n) : ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= (__builtin_dynamic_object_size (__s1, 0)) / (sizeof (wchar_t)))) && !(((long unsigned int) (__n)) <= (__builtin_dynamic_object_size (__s1, 0)) / (sizeof (wchar_t)))) ? __wmemcpy_chk_warn (__s1, __s2, __n, (__builtin_dynamic_object_size (__s1, 0)) / (sizeof (wchar_t))) : __wmemcpy_chk (__s1, __s2, __n, (__builtin_dynamic_object_size (__s1, 0)) / (sizeof (wchar_t))))) ; } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wmemmove (wchar_t * __s1, const wchar_t *__s2, size_t __n) noexcept (true) { return (((__builtin_constant_p (__builtin_dynamic_object_size (__s1, 0)) && (__builtin_dynamic_object_size (__s1, 0)) == (long unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= ((__builtin_dynamic_object_size (__s1, 0))) / ((sizeof (wchar_t))))) && (((long unsigned int) (__n)) <= ((__builtin_dynamic_object_size (__s1, 0))) / ((sizeof (wchar_t)))))) ? __wmemmove_alias (__s1, __s2, __n) : ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= (__builtin_dynamic_object_size (__s1, 0)) / (sizeof (wchar_t)))) && !(((long unsigned int) (__n)) <= (__builtin_dynamic_object_size (__s1, 0)) / (sizeof (wchar_t)))) ? __wmemmove_chk_warn (__s1, __s2, __n, (__builtin_dynamic_object_size (__s1, 0)) / (sizeof (wchar_t))) : __wmemmove_chk (__s1, __s2, __n, (__builtin_dynamic_object_size (__s1, 0)) / (sizeof (wchar_t))))) ; } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wmempcpy (wchar_t * __restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) { return (((__builtin_constant_p (__builtin_dynamic_object_size (__s1, 0)) && (__builtin_dynamic_object_size (__s1, 0)) == (long unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= ((__builtin_dynamic_object_size (__s1, 0))) / ((sizeof (wchar_t))))) && (((long unsigned int) (__n)) <= ((__builtin_dynamic_object_size (__s1, 0))) / ((sizeof (wchar_t)))))) ? __wmempcpy_alias (__s1, __s2, __n) : ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= (__builtin_dynamic_object_size (__s1, 0)) / (sizeof (wchar_t)))) && !(((long unsigned int) (__n)) <= (__builtin_dynamic_object_size (__s1, 0)) / (sizeof (wchar_t)))) ? __wmempcpy_chk_warn (__s1, __s2, __n, (__builtin_dynamic_object_size (__s1, 0)) / (sizeof (wchar_t))) : __wmempcpy_chk (__s1, __s2, __n, (__builtin_dynamic_object_size (__s1, 0)) / (sizeof (wchar_t))))) ; } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wmemset (wchar_t * __s, wchar_t __c, size_t __n) noexcept (true) { return (((__builtin_constant_p (__builtin_dynamic_object_size (__s, 0)) && (__builtin_dynamic_object_size (__s, 0)) == (long unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= ((__builtin_dynamic_object_size (__s, 0))) / ((sizeof (wchar_t))))) && (((long unsigned int) (__n)) <= ((__builtin_dynamic_object_size (__s, 0))) / ((sizeof (wchar_t)))))) ? __wmemset_alias (__s, __c, __n) : ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= (__builtin_dynamic_object_size (__s, 0)) / (sizeof (wchar_t)))) && !(((long unsigned int) (__n)) <= (__builtin_dynamic_object_size (__s, 0)) / (sizeof (wchar_t)))) ? __wmemset_chk_warn (__s, __c, __n, (__builtin_dynamic_object_size (__s, 0)) / (sizeof (wchar_t))) : __wmemset_chk (__s, __c, __n, (__builtin_dynamic_object_size (__s, 0)) / (sizeof (wchar_t))))) ; } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wcscpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) { size_t __sz = __builtin_dynamic_object_size (__dest, 1); if (__sz != (size_t) -1) return __wcscpy_chk (__dest, __src, __sz / sizeof (wchar_t)); return __wcscpy_alias (__dest, __src); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wcpcpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) { size_t __sz = __builtin_dynamic_object_size (__dest, 1); if (__sz != (size_t) -1) return __wcpcpy_chk (__dest, __src, __sz / sizeof (wchar_t)); return __wcpcpy_alias (__dest, __src); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wcsncpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) { return (((__builtin_constant_p (__builtin_dynamic_object_size (__dest, 1)) && (__builtin_dynamic_object_size (__dest, 1)) == (long unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= ((__builtin_dynamic_object_size (__dest, 1))) / ((sizeof (wchar_t))))) && (((long unsigned int) (__n)) <= ((__builtin_dynamic_object_size (__dest, 1))) / ((sizeof (wchar_t)))))) ? __wcsncpy_alias (__dest, __src, __n) : ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= (__builtin_dynamic_object_size (__dest, 1)) / (sizeof (wchar_t)))) && !(((long unsigned int) (__n)) <= (__builtin_dynamic_object_size (__dest, 1)) / (sizeof (wchar_t)))) ? __wcsncpy_chk_warn (__dest, __src, __n, (__builtin_dynamic_object_size (__dest, 1)) / (sizeof (wchar_t))) : __wcsncpy_chk (__dest, __src, __n, (__builtin_dynamic_object_size (__dest, 1)) / (sizeof (wchar_t))))) ; } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wcpncpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) { return (((__builtin_constant_p (__builtin_dynamic_object_size (__dest, 1)) && (__builtin_dynamic_object_size (__dest, 1)) == (long unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= ((__builtin_dynamic_object_size (__dest, 1))) / ((sizeof (wchar_t))))) && (((long unsigned int) (__n)) <= ((__builtin_dynamic_object_size (__dest, 1))) / ((sizeof (wchar_t)))))) ? __wcpncpy_alias (__dest, __src, __n) : ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= (__builtin_dynamic_object_size (__dest, 1)) / (sizeof (wchar_t)))) && !(((long unsigned int) (__n)) <= (__builtin_dynamic_object_size (__dest, 1)) / (sizeof (wchar_t)))) ? __wcpncpy_chk_warn (__dest, __src, __n, (__builtin_dynamic_object_size (__dest, 1)) / (sizeof (wchar_t))) : __wcpncpy_chk (__dest, __src, __n, (__builtin_dynamic_object_size (__dest, 1)) / (sizeof (wchar_t))))) ; } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wcscat (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) { size_t __sz = __builtin_dynamic_object_size (__dest, 1); if (__sz != (size_t) -1) return __wcscat_chk (__dest, __src, __sz / sizeof (wchar_t)); return __wcscat_alias (__dest, __src); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wcsncat (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) { size_t __sz = __builtin_dynamic_object_size (__dest, 1); if (__sz != (size_t) -1) return __wcsncat_chk (__dest, __src, __n, __sz / sizeof (wchar_t)); return __wcsncat_alias (__dest, __src, __n); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) wcslcpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) { if (__builtin_dynamic_object_size (__dest, 1) != (size_t) -1 && (!__builtin_constant_p (__n > __builtin_dynamic_object_size (__dest, 1) / sizeof (wchar_t)) || __n > __builtin_dynamic_object_size (__dest, 1) / sizeof (wchar_t))) return __wcslcpy_chk (__dest, __src, __n, __builtin_dynamic_object_size (__dest, 1) / sizeof (wchar_t)); return __wcslcpy_alias (__dest, __src, __n); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) wcslcat (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) { if (__builtin_dynamic_object_size (__dest, 1) != (size_t) -1 && (!__builtin_constant_p (__n > __builtin_dynamic_object_size (__dest, 1) / sizeof (wchar_t)) || __n > __builtin_dynamic_object_size (__dest, 1) / sizeof (wchar_t))) return __wcslcat_chk (__dest, __src, __n, __builtin_dynamic_object_size (__dest, 1) / sizeof (wchar_t)); return __wcslcat_alias (__dest, __src, __n); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) { size_t __sz = __builtin_dynamic_object_size (__s, 1); if (__sz != (size_t) -1 || 3 > 1) return __swprintf_chk (__s, __n, 3 - 1, __sz / sizeof (wchar_t), __fmt, __builtin_va_arg_pack ()); return __swprintf_alias (__s, __n, __fmt, __builtin_va_arg_pack ()); } # 205 "/usr/include/x86_64-linux-gnu/bits/wchar2.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) { size_t __sz = __builtin_dynamic_object_size (__s, 1); if (__sz != (size_t) -1 || 3 > 1) return __vswprintf_chk (__s, __n, 3 - 1, __sz / sizeof (wchar_t), __fmt, __ap); return __vswprintf_alias (__s, __n, __fmt, __ap); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int wprintf (const wchar_t *__restrict __fmt, ...) { return __wprintf_chk (3 - 1, __fmt, __builtin_va_arg_pack ()); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) { return __fwprintf_chk (__stream, 3 - 1, __fmt, __builtin_va_arg_pack ()); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap) { return __vwprintf_chk (3 - 1, __fmt, __ap); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int vfwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) { return __vfwprintf_chk (__stream, 3 - 1, __fmt, __ap); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * fgetws (wchar_t * __restrict __s, int __n, __FILE *__restrict __stream) { size_t __sz = __builtin_dynamic_object_size (__s, 1); if (((__builtin_constant_p (__sz) && (__sz) == (long unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))) && (((long unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))))) return __fgetws_alias (__s, __n, __stream); if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t)))) && !(((long unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t))))) return __fgetws_chk_warn (__s, __sz / sizeof (wchar_t), __n, __stream); return __fgetws_chk (__s, __sz / sizeof (wchar_t), __n, __stream); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * fgetws_unlocked (wchar_t * __restrict __s, int __n, __FILE *__restrict __stream) { size_t __sz = __builtin_dynamic_object_size (__s, 1); if (((__builtin_constant_p (__sz) && (__sz) == (long unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))) && (((long unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))))) return __fgetws_unlocked_alias (__s, __n, __stream); if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((long unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t)))) && !(((long unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t))))) return __fgetws_unlocked_chk_warn (__s, __sz / sizeof (wchar_t), __n, __stream); return __fgetws_unlocked_chk (__s, __sz / sizeof (wchar_t), __n, __stream); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t __attribute__ ((__leaf__)) wcrtomb (char * __restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) { if (__builtin_dynamic_object_size (__s, 1) != (size_t) -1 && 16 > __builtin_dynamic_object_size (__s, 1)) return __wcrtomb_chk (__s, __wchar, __ps, __builtin_dynamic_object_size (__s, 1)); return __wcrtomb_alias (__s, __wchar, __ps); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) mbsrtowcs (wchar_t * __restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) { return (((__builtin_constant_p (__builtin_dynamic_object_size (__dst, 1)) && (__builtin_dynamic_object_size (__dst, 1)) == (long unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= ((__builtin_dynamic_object_size (__dst, 1))) / ((sizeof (wchar_t))))) && (((long unsigned int) (__len)) <= ((__builtin_dynamic_object_size (__dst, 1))) / ((sizeof (wchar_t)))))) ? __mbsrtowcs_alias (__dst, __src, __len, __ps) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (wchar_t)))) && !(((long unsigned int) (__len)) <= (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (wchar_t)))) ? __mbsrtowcs_chk_warn (__dst, __src, __len, __ps, (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (wchar_t))) : __mbsrtowcs_chk (__dst, __src, __len, __ps, (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (wchar_t))))) ; } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) wcsrtombs (char * __restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) { return (((__builtin_constant_p (__builtin_dynamic_object_size (__dst, 1)) && (__builtin_dynamic_object_size (__dst, 1)) == (long unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= ((__builtin_dynamic_object_size (__dst, 1))) / ((sizeof (char))))) && (((long unsigned int) (__len)) <= ((__builtin_dynamic_object_size (__dst, 1))) / ((sizeof (char)))))) ? __wcsrtombs_alias (__dst, __src, __len, __ps) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (char)))) && !(((long unsigned int) (__len)) <= (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (char)))) ? __wcsrtombs_chk_warn (__dst, __src, __len, __ps, __builtin_dynamic_object_size (__dst, 1)) : __wcsrtombs_chk (__dst, __src, __len, __ps, __builtin_dynamic_object_size (__dst, 1)))) ; } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) mbsnrtowcs (wchar_t * __restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) { return (((__builtin_constant_p (__builtin_dynamic_object_size (__dst, 1)) && (__builtin_dynamic_object_size (__dst, 1)) == (long unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= ((__builtin_dynamic_object_size (__dst, 1))) / ((sizeof (wchar_t))))) && (((long unsigned int) (__len)) <= ((__builtin_dynamic_object_size (__dst, 1))) / ((sizeof (wchar_t)))))) ? __mbsnrtowcs_alias (__dst, __src, __nmc, __len, __ps) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (wchar_t)))) && !(((long unsigned int) (__len)) <= (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (wchar_t)))) ? __mbsnrtowcs_chk_warn (__dst, __src, __nmc, __len, __ps, (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (wchar_t))) : __mbsnrtowcs_chk (__dst, __src, __nmc, __len, __ps, (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (wchar_t))))) ; } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) wcsnrtombs (char * __restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) { return (((__builtin_constant_p (__builtin_dynamic_object_size (__dst, 1)) && (__builtin_dynamic_object_size (__dst, 1)) == (long unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= ((__builtin_dynamic_object_size (__dst, 1))) / ((sizeof (char))))) && (((long unsigned int) (__len)) <= ((__builtin_dynamic_object_size (__dst, 1))) / ((sizeof (char)))))) ? __wcsnrtombs_alias (__dst, __src, __nwc, __len, __ps) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (char)))) && !(((long unsigned int) (__len)) <= (__builtin_dynamic_object_size (__dst, 1)) / (sizeof (char)))) ? __wcsnrtombs_chk_warn (__dst, __src, __nwc, __len, __ps, __builtin_dynamic_object_size (__dst, 1)) : __wcsnrtombs_chk (__dst, __src, __nwc, __len, __ps, __builtin_dynamic_object_size (__dst, 1)))) ; } # 1096 "/usr/include/wchar.h" 2 3 4 } # 50 "/usr/include/c++/15/cwchar" 2 3 # 64 "/usr/include/c++/15/cwchar" 3 namespace std { using ::mbstate_t; } # 137 "/usr/include/c++/15/cwchar" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { using ::wint_t; using ::btowc; using ::fgetwc; using ::fgetws; using ::fputwc; using ::fputws; using ::fwide; using ::fwprintf; using ::fwscanf; using ::getwc; using ::getwchar; using ::mbrlen; using ::mbrtowc; using ::mbsinit; using ::mbsrtowcs; using ::putwc; using ::putwchar; using ::swprintf; using ::swscanf; using ::ungetwc; using ::vfwprintf; using ::vfwscanf; using ::vswprintf; using ::vswscanf; using ::vwprintf; using ::vwscanf; using ::wcrtomb; using ::wcscat; using ::wcscmp; using ::wcscoll; using ::wcscpy; using ::wcscspn; using ::wcsftime; using ::wcslen; using ::wcsncat; using ::wcsncmp; using ::wcsncpy; using ::wcsrtombs; using ::wcsspn; using ::wcstod; using ::wcstof; using ::wcstok; using ::wcstol; using ::wcstoul; using ::wcsxfrm; using ::wctob; using ::wmemcmp; using ::wmemcpy; using ::wmemmove; using ::wmemset; using ::wprintf; using ::wscanf; using ::wcschr; using ::wcspbrk; using ::wcsrchr; using ::wcsstr; using ::wmemchr; # 236 "/usr/include/c++/15/cwchar" 3 } } namespace __gnu_cxx { using ::wcstold; # 262 "/usr/include/c++/15/cwchar" 3 using ::wcstoll; using ::wcstoull; } namespace std { using ::__gnu_cxx::wcstold; using ::__gnu_cxx::wcstoll; using ::__gnu_cxx::wcstoull; } # 282 "/usr/include/c++/15/cwchar" 3 namespace std { using std::wcstof; using std::vfwscanf; using std::vswscanf; using std::vwscanf; using std::wcstold; using std::wcstoll; using std::wcstoull; } # 43 "/usr/include/c++/15/bits/postypes.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 55 "/usr/include/c++/15/bits/postypes.h" 3 # 55 "/usr/include/c++/15/bits/postypes.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wlong-long" # 66 "/usr/include/c++/15/bits/postypes.h" 3 typedef long int streamoff; #pragma GCC diagnostic pop typedef ptrdiff_t streamsize; # 86 "/usr/include/c++/15/bits/postypes.h" 3 template class fpos { private: streamoff _M_off; _StateT _M_state; public: fpos() : _M_off(0), _M_state() { } # 108 "/usr/include/c++/15/bits/postypes.h" 3 fpos(streamoff __off) : _M_off(__off), _M_state() { } fpos(const fpos&) = default; fpos& operator=(const fpos&) = default; ~fpos() = default; operator streamoff() const { return _M_off; } void state(_StateT __st) { _M_state = __st; } _StateT state() const { return _M_state; } fpos& operator+=(streamoff __off) { _M_off += __off; return *this; } fpos& operator-=(streamoff __off) { _M_off -= __off; return *this; } fpos operator+(streamoff __off) const { fpos __pos(*this); __pos += __off; return __pos; } fpos operator-(streamoff __off) const { fpos __pos(*this); __pos -= __off; return __pos; } streamoff operator-(const fpos& __other) const { return _M_off - __other._M_off; } }; template inline bool operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) { return streamoff(__lhs) == streamoff(__rhs); } template inline bool operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) { return streamoff(__lhs) != streamoff(__rhs); } typedef fpos streampos; typedef fpos wstreampos; typedef fpos u8streampos; typedef fpos u16streampos; typedef fpos u32streampos; } # 45 "/usr/include/c++/15/bits/char_traits.h" 2 3 # 66 "/usr/include/c++/15/bits/char_traits.h" 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { # 70 "/usr/include/c++/15/bits/char_traits.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstringop-overflow" #pragma GCC diagnostic ignored "-Wstringop-overread" #pragma GCC diagnostic ignored "-Warray-bounds" # 85 "/usr/include/c++/15/bits/char_traits.h" 3 template struct _Char_types { typedef unsigned long int_type; typedef std::streampos pos_type; typedef std::streamoff off_type; typedef std::mbstate_t state_type; }; # 112 "/usr/include/c++/15/bits/char_traits.h" 3 template struct char_traits { typedef _CharT char_type; typedef typename _Char_types<_CharT>::int_type int_type; typedef typename _Char_types<_CharT>::pos_type pos_type; typedef typename _Char_types<_CharT>::off_type off_type; typedef typename _Char_types<_CharT>::state_type state_type; using comparison_category = std::strong_ordering; static constexpr void assign(char_type& __c1, const char_type& __c2) { if (std::__is_constant_evaluated()) std::construct_at(__builtin_addressof(__c1), __c2); else __c1 = __c2; } static constexpr bool eq(const char_type& __c1, const char_type& __c2) { return __c1 == __c2; } static constexpr bool lt(const char_type& __c1, const char_type& __c2) { return __c1 < __c2; } static constexpr int compare(const char_type* __s1, const char_type* __s2, std::size_t __n); static constexpr std::size_t length(const char_type* __s); static constexpr const char_type* find(const char_type* __s, std::size_t __n, const char_type& __a); static constexpr char_type* move(char_type* __s1, const char_type* __s2, std::size_t __n); static constexpr char_type* copy(char_type* __s1, const char_type* __s2, std::size_t __n); static constexpr char_type* assign(char_type* __s, std::size_t __n, char_type __a); static constexpr char_type to_char_type(const int_type& __c) { return static_cast(__c); } static constexpr int_type to_int_type(const char_type& __c) { return static_cast(__c); } static constexpr bool eq_int_type(const int_type& __c1, const int_type& __c2) { return __c1 == __c2; } static constexpr int_type eof() { return static_cast(-1); } static constexpr int_type not_eof(const int_type& __c) { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); } }; template constexpr int char_traits<_CharT>:: compare(const char_type* __s1, const char_type* __s2, std::size_t __n) { for (std::size_t __i = 0; __i < __n; ++__i) if (lt(__s1[__i], __s2[__i])) return -1; else if (lt(__s2[__i], __s1[__i])) return 1; return 0; } template constexpr std::size_t char_traits<_CharT>:: length(const char_type* __p) { std::size_t __i = 0; while (!eq(__p[__i], char_type())) ++__i; return __i; } template constexpr const typename char_traits<_CharT>::char_type* char_traits<_CharT>:: find(const char_type* __s, std::size_t __n, const char_type& __a) { for (std::size_t __i = 0; __i < __n; ++__i) if (eq(__s[__i], __a)) return __s + __i; return 0; } template constexpr typename char_traits<_CharT>::char_type* char_traits<_CharT>:: move(char_type* __s1, const char_type* __s2, std::size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) { if (__builtin_constant_p(__s2 < __s1) && __s1 > __s2 && __s1 < (__s2 + __n)) { do { --__n; assign(__s1[__n], __s2[__n]); } while (__n > 0); } else copy(__s1, __s2, __n); return __s1; } __builtin_memmove(__s1, __s2, __n * sizeof(char_type)); return __s1; } template constexpr typename char_traits<_CharT>::char_type* char_traits<_CharT>:: copy(char_type* __s1, const char_type* __s2, std::size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) { for (std::size_t __i = 0; __i < __n; ++__i) std::construct_at(__s1 + __i, __s2[__i]); return __s1; } __builtin_memcpy(__s1, __s2, __n * sizeof(char_type)); return __s1; } template constexpr typename char_traits<_CharT>::char_type* char_traits<_CharT>:: assign(char_type* __s, std::size_t __n, char_type __a) { if (std::__is_constant_evaluated()) { for (std::size_t __i = 0; __i < __n; ++__i) std::construct_at(__s + __i, __a); return __s; } if constexpr (sizeof(_CharT) == 1 && __is_trivial(_CharT)) { if (__n) { unsigned char __c; __builtin_memcpy(&__c, __builtin_addressof(__a), 1); __builtin_memset(__s, __c, __n); } } else { for (std::size_t __i = 0; __i < __n; ++__i) __s[__i] = __a; } return __s; } } namespace std __attribute__ ((__visibility__ ("default"))) { # 324 "/usr/include/c++/15/bits/char_traits.h" 3 template struct char_traits : public __gnu_cxx::char_traits<_CharT> { }; template<> struct char_traits { typedef char char_type; typedef int int_type; typedef streampos pos_type; typedef streamoff off_type; typedef mbstate_t state_type; using comparison_category = strong_ordering; static constexpr void assign(char_type& __c1, const char_type& __c2) noexcept { if (std::__is_constant_evaluated()) std::construct_at(__builtin_addressof(__c1), __c2); else __c1 = __c2; } static constexpr bool eq(const char_type& __c1, const char_type& __c2) noexcept { return __c1 == __c2; } static constexpr bool lt(const char_type& __c1, const char_type& __c2) noexcept { return (static_cast(__c1) < static_cast(__c2)); } static constexpr int compare(const char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return 0; if (std::__is_constant_evaluated()) { for (size_t __i = 0; __i < __n; ++__i) if (lt(__s1[__i], __s2[__i])) return -1; else if (lt(__s2[__i], __s1[__i])) return 1; return 0; } return __builtin_memcmp(__s1, __s2, __n); } static constexpr size_t length(const char_type* __s) { if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::length(__s); return __builtin_strlen(__s); } static constexpr const char_type* find(const char_type* __s, size_t __n, const char_type& __a) { if (__n == 0) return 0; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::find(__s, __n, __a); return static_cast(__builtin_memchr(__s, __a, __n)); } static constexpr char_type* move(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::move(__s1, __s2, __n); return static_cast(__builtin_memmove(__s1, __s2, __n)); } static constexpr char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::copy(__s1, __s2, __n); return static_cast(__builtin_memcpy(__s1, __s2, __n)); } static constexpr char_type* assign(char_type* __s, size_t __n, char_type __a) { if (__n == 0) return __s; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::assign(__s, __n, __a); return static_cast(__builtin_memset(__s, __a, __n)); } static constexpr char_type to_char_type(const int_type& __c) noexcept { return static_cast(__c); } static constexpr int_type to_int_type(const char_type& __c) noexcept { return static_cast(static_cast(__c)); } static constexpr bool eq_int_type(const int_type& __c1, const int_type& __c2) noexcept { return __c1 == __c2; } static constexpr int_type eof() noexcept { return static_cast(-1); } static constexpr int_type not_eof(const int_type& __c) noexcept { return (__c == eof()) ? 0 : __c; } }; template<> struct char_traits { typedef wchar_t char_type; typedef wint_t int_type; typedef streamoff off_type; typedef wstreampos pos_type; typedef mbstate_t state_type; using comparison_category = strong_ordering; static constexpr void assign(char_type& __c1, const char_type& __c2) noexcept { if (std::__is_constant_evaluated()) std::construct_at(__builtin_addressof(__c1), __c2); else __c1 = __c2; } static constexpr bool eq(const char_type& __c1, const char_type& __c2) noexcept { return __c1 == __c2; } static constexpr bool lt(const char_type& __c1, const char_type& __c2) noexcept { return __c1 < __c2; } static constexpr int compare(const char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return 0; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::compare(__s1, __s2, __n); return wmemcmp(__s1, __s2, __n); } static constexpr size_t length(const char_type* __s) { if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::length(__s); return wcslen(__s); } static constexpr const char_type* find(const char_type* __s, size_t __n, const char_type& __a) { if (__n == 0) return 0; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::find(__s, __n, __a); return wmemchr(__s, __a, __n); } static constexpr char_type* move(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::move(__s1, __s2, __n); return wmemmove(__s1, __s2, __n); } static constexpr char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::copy(__s1, __s2, __n); return wmemcpy(__s1, __s2, __n); } static constexpr char_type* assign(char_type* __s, size_t __n, char_type __a) { if (__n == 0) return __s; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::assign(__s, __n, __a); return wmemset(__s, __a, __n); } static constexpr char_type to_char_type(const int_type& __c) noexcept { return char_type(__c); } static constexpr int_type to_int_type(const char_type& __c) noexcept { return int_type(__c); } static constexpr bool eq_int_type(const int_type& __c1, const int_type& __c2) noexcept { return __c1 == __c2; } static constexpr int_type eof() noexcept { return static_cast((0xffffffffu)); } static constexpr int_type not_eof(const int_type& __c) noexcept { return eq_int_type(__c, eof()) ? 0 : __c; } }; template<> struct char_traits { typedef char8_t char_type; typedef unsigned int int_type; typedef u8streampos pos_type; typedef streamoff off_type; typedef mbstate_t state_type; using comparison_category = strong_ordering; static constexpr void assign(char_type& __c1, const char_type& __c2) noexcept { if (std::__is_constant_evaluated()) std::construct_at(__builtin_addressof(__c1), __c2); else __c1 = __c2; } static constexpr bool eq(const char_type& __c1, const char_type& __c2) noexcept { return __c1 == __c2; } static constexpr bool lt(const char_type& __c1, const char_type& __c2) noexcept { return __c1 < __c2; } static constexpr int compare(const char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return 0; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::compare(__s1, __s2, __n); return __builtin_memcmp(__s1, __s2, __n); } static constexpr size_t length(const char_type* __s) { if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::length(__s); return __builtin_strlen((const char*)__s); } static constexpr const char_type* find(const char_type* __s, size_t __n, const char_type& __a) { if (__n == 0) return 0; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::find(__s, __n, __a); return static_cast(__builtin_memchr(__s, __a, __n)); } static constexpr char_type* move(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::move(__s1, __s2, __n); return static_cast(__builtin_memmove(__s1, __s2, __n)); } static constexpr char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::copy(__s1, __s2, __n); return static_cast(__builtin_memcpy(__s1, __s2, __n)); } static constexpr char_type* assign(char_type* __s, size_t __n, char_type __a) { if (__n == 0) return __s; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::assign(__s, __n, __a); return static_cast(__builtin_memset(__s, __a, __n)); } static constexpr char_type to_char_type(const int_type& __c) noexcept { return char_type(__c); } static constexpr int_type to_int_type(const char_type& __c) noexcept { return int_type(__c); } static constexpr bool eq_int_type(const int_type& __c1, const int_type& __c2) noexcept { return __c1 == __c2; } static constexpr int_type eof() noexcept { return static_cast(-1); } static constexpr int_type not_eof(const int_type& __c) noexcept { return eq_int_type(__c, eof()) ? 0 : __c; } }; } namespace std __attribute__ ((__visibility__ ("default"))) { template<> struct char_traits { typedef char16_t char_type; typedef short unsigned int int_type; typedef streamoff off_type; typedef u16streampos pos_type; typedef mbstate_t state_type; using comparison_category = strong_ordering; static constexpr void assign(char_type& __c1, const char_type& __c2) noexcept { if (std::__is_constant_evaluated()) std::construct_at(__builtin_addressof(__c1), __c2); else __c1 = __c2; } static constexpr bool eq(const char_type& __c1, const char_type& __c2) noexcept { return __c1 == __c2; } static constexpr bool lt(const char_type& __c1, const char_type& __c2) noexcept { return __c1 < __c2; } static constexpr int compare(const char_type* __s1, const char_type* __s2, size_t __n) { for (size_t __i = 0; __i < __n; ++__i) if (lt(__s1[__i], __s2[__i])) return -1; else if (lt(__s2[__i], __s1[__i])) return 1; return 0; } static constexpr size_t length(const char_type* __s) { size_t __i = 0; while (!eq(__s[__i], char_type())) ++__i; return __i; } static constexpr const char_type* find(const char_type* __s, size_t __n, const char_type& __a) { for (size_t __i = 0; __i < __n; ++__i) if (eq(__s[__i], __a)) return __s + __i; return 0; } static constexpr char_type* move(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::move(__s1, __s2, __n); return (static_cast (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); } static constexpr char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::copy(__s1, __s2, __n); return (static_cast (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); } static constexpr char_type* assign(char_type* __s, size_t __n, char_type __a) { for (size_t __i = 0; __i < __n; ++__i) assign(__s[__i], __a); return __s; } static constexpr char_type to_char_type(const int_type& __c) noexcept { return char_type(__c); } static constexpr bool eq_int_type(const int_type& __c1, const int_type& __c2) noexcept { return __c1 == __c2; } static constexpr int_type to_int_type(const char_type& __c) noexcept { return __c == eof() ? int_type(0xfffd) : int_type(__c); } static constexpr int_type eof() noexcept { return static_cast(-1); } static constexpr int_type not_eof(const int_type& __c) noexcept { return eq_int_type(__c, eof()) ? 0 : __c; } }; template<> struct char_traits { typedef char32_t char_type; typedef unsigned int int_type; typedef streamoff off_type; typedef u32streampos pos_type; typedef mbstate_t state_type; using comparison_category = strong_ordering; static constexpr void assign(char_type& __c1, const char_type& __c2) noexcept { if (std::__is_constant_evaluated()) std::construct_at(__builtin_addressof(__c1), __c2); else __c1 = __c2; } static constexpr bool eq(const char_type& __c1, const char_type& __c2) noexcept { return __c1 == __c2; } static constexpr bool lt(const char_type& __c1, const char_type& __c2) noexcept { return __c1 < __c2; } static constexpr int compare(const char_type* __s1, const char_type* __s2, size_t __n) { for (size_t __i = 0; __i < __n; ++__i) if (lt(__s1[__i], __s2[__i])) return -1; else if (lt(__s2[__i], __s1[__i])) return 1; return 0; } static constexpr size_t length(const char_type* __s) { size_t __i = 0; while (!eq(__s[__i], char_type())) ++__i; return __i; } static constexpr const char_type* find(const char_type* __s, size_t __n, const char_type& __a) { for (size_t __i = 0; __i < __n; ++__i) if (eq(__s[__i], __a)) return __s + __i; return 0; } static constexpr char_type* move(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::move(__s1, __s2, __n); return (static_cast (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); } static constexpr char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits::copy(__s1, __s2, __n); return (static_cast (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); } static constexpr char_type* assign(char_type* __s, size_t __n, char_type __a) { for (size_t __i = 0; __i < __n; ++__i) assign(__s[__i], __a); return __s; } static constexpr char_type to_char_type(const int_type& __c) noexcept { return char_type(__c); } static constexpr int_type to_int_type(const char_type& __c) noexcept { return int_type(__c); } static constexpr bool eq_int_type(const int_type& __c1, const int_type& __c2) noexcept { return __c1 == __c2; } static constexpr int_type eof() noexcept { return static_cast(-1); } static constexpr int_type not_eof(const int_type& __c) noexcept { return eq_int_type(__c, eof()) ? 0 : __c; } }; namespace __detail { template constexpr auto __char_traits_cmp_cat(int __cmp) noexcept { if constexpr (requires { typename _ChTraits::comparison_category; }) { using _Cat = typename _ChTraits::comparison_category; static_assert( !is_void_v> ); return static_cast<_Cat>(__cmp <=> 0); } else return static_cast(__cmp <=> 0); } } #pragma GCC diagnostic pop } # 45 "/usr/include/c++/15/string" 2 3 # 1 "/usr/include/c++/15/bits/allocator.h" 1 3 # 46 "/usr/include/c++/15/bits/allocator.h" 3 # 1 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++allocator.h" 1 3 # 33 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++allocator.h" 3 # 1 "/usr/include/c++/15/bits/new_allocator.h" 1 3 # 41 "/usr/include/c++/15/bits/new_allocator.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 62 "/usr/include/c++/15/bits/new_allocator.h" 3 template class __new_allocator { public: typedef _Tp value_type; typedef std::size_t size_type; typedef std::ptrdiff_t difference_type; # 83 "/usr/include/c++/15/bits/new_allocator.h" 3 typedef std::true_type propagate_on_container_move_assignment; __attribute__((__always_inline__)) constexpr __new_allocator() noexcept { } __attribute__((__always_inline__)) constexpr __new_allocator(const __new_allocator&) noexcept { } template __attribute__((__always_inline__)) constexpr __new_allocator(const __new_allocator<_Tp1>&) noexcept { } __new_allocator& operator=(const __new_allocator&) = default; # 125 "/usr/include/c++/15/bits/new_allocator.h" 3 [[__nodiscard__]] _Tp* allocate(size_type __n, const void* = static_cast(0)) { static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types"); if (__builtin_expect(__n > this->_M_max_size(), false)) { if (__n > (std::size_t(-1) / sizeof(_Tp))) std::__throw_bad_array_new_length(); std::__throw_bad_alloc(); } if (alignof(_Tp) > 16) { std::align_val_t __al = std::align_val_t(alignof(_Tp)); return static_cast<_Tp*>(__builtin_operator_new(__n * sizeof(_Tp), __al)); } return static_cast<_Tp*>(__builtin_operator_new(__n * sizeof(_Tp))); } void deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__))) { if (alignof(_Tp) > 16) { __builtin_operator_delete((__p), (__n) * sizeof(_Tp), std::align_val_t(alignof(_Tp))); return; } __builtin_operator_delete((__p), (__n) * sizeof(_Tp)); } # 213 "/usr/include/c++/15/bits/new_allocator.h" 3 template friend __attribute__((__always_inline__)) constexpr bool operator==(const __new_allocator&, const __new_allocator<_Up>&) noexcept { return true; } # 227 "/usr/include/c++/15/bits/new_allocator.h" 3 private: __attribute__((__always_inline__)) constexpr size_type _M_max_size() const noexcept { return std::size_t(0x7fffffffffffffffL) / sizeof(_Tp); } }; } # 34 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++allocator.h" 2 3 namespace std { # 46 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++allocator.h" 3 template using __allocator_base = __new_allocator<_Tp>; } # 47 "/usr/include/c++/15/bits/allocator.h" 2 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++11-extensions" namespace std __attribute__ ((__visibility__ ("default"))) { # 75 "/usr/include/c++/15/bits/allocator.h" 3 template<> class allocator { public: typedef void value_type; typedef size_t size_type; typedef ptrdiff_t difference_type; # 96 "/usr/include/c++/15/bits/allocator.h" 3 using propagate_on_container_move_assignment = true_type; using is_always_equal __attribute__ ((__deprecated__ ("use '" "std::allocator_traits::is_always_equal" "' instead"))) = true_type; allocator() = default; ~allocator() = default; template __attribute__((__always_inline__)) constexpr allocator(const allocator<_Up>&) noexcept { } }; # 132 "/usr/include/c++/15/bits/allocator.h" 3 template class allocator : public __allocator_base<_Tp> { public: typedef _Tp value_type; typedef size_t size_type; typedef ptrdiff_t difference_type; # 155 "/usr/include/c++/15/bits/allocator.h" 3 using propagate_on_container_move_assignment = true_type; using is_always_equal __attribute__ ((__deprecated__ ("use '" "std::allocator_traits::is_always_equal" "' instead"))) = true_type; __attribute__((__always_inline__)) constexpr allocator() noexcept { } __attribute__((__always_inline__)) constexpr allocator(const allocator& __a) noexcept : __allocator_base<_Tp>(__a) { } allocator& operator=(const allocator&) = default; template __attribute__((__always_inline__)) constexpr allocator(const allocator<_Tp1>&) noexcept { } __attribute__((__always_inline__)) constexpr ~allocator() noexcept { } [[nodiscard,__gnu__::__always_inline__]] constexpr _Tp* allocate(size_t __n) { if (std::__is_constant_evaluated()) { if (__builtin_mul_overflow(__n, sizeof(_Tp), &__n)) std::__throw_bad_array_new_length(); return static_cast<_Tp*>(::operator new(__n)); } return __allocator_base<_Tp>::allocate(__n, 0); } [[__gnu__::__always_inline__]] constexpr void deallocate(_Tp* __p, size_t __n) { if (std::__is_constant_evaluated()) { ::operator delete(__p); return; } __allocator_base<_Tp>::deallocate(__p, __n); } friend __attribute__((__always_inline__)) constexpr bool operator==(const allocator&, const allocator&) noexcept { return true; } # 232 "/usr/include/c++/15/bits/allocator.h" 3 }; template __attribute__((__always_inline__)) inline constexpr bool operator==(const allocator<_T1>&, const allocator<_T2>&) noexcept { return true; } # 259 "/usr/include/c++/15/bits/allocator.h" 3 template class allocator { public: typedef _Tp value_type; allocator() { } template allocator(const allocator<_Up>&) { } }; template class allocator { public: typedef _Tp value_type; allocator() { } template allocator(const allocator<_Up>&) { } }; template class allocator { public: typedef _Tp value_type; allocator() { } template allocator(const allocator<_Up>&) { } }; extern template class allocator; extern template class allocator; } #pragma GCC diagnostic pop # 46 "/usr/include/c++/15/string" 2 3 # 1 "/usr/include/c++/15/bits/localefwd.h" 1 3 # 42 "/usr/include/c++/15/bits/localefwd.h" 3 # 1 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++locale.h" 1 3 # 39 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++locale.h" 3 # 40 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++locale.h" 3 # 1 "/usr/include/c++/15/clocale" 1 3 # 47 "/usr/include/c++/15/clocale" 3 # 1 "/usr/include/locale.h" 1 3 4 # 28 "/usr/include/locale.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h" 1 3 4 # 29 "/usr/include/locale.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/locale.h" 1 3 4 # 30 "/usr/include/locale.h" 2 3 4 extern "C" { # 51 "/usr/include/locale.h" 3 4 struct lconv { char *decimal_point; char *thousands_sep; char *grouping; char *int_curr_symbol; char *currency_symbol; char *mon_decimal_point; char *mon_thousands_sep; char *mon_grouping; char *positive_sign; char *negative_sign; char int_frac_digits; char frac_digits; char p_cs_precedes; char p_sep_by_space; char n_cs_precedes; char n_sep_by_space; char p_sign_posn; char n_sign_posn; char int_p_cs_precedes; char int_p_sep_by_space; char int_n_cs_precedes; char int_n_sep_by_space; char int_p_sign_posn; char int_n_sign_posn; # 118 "/usr/include/locale.h" 3 4 }; extern char *setlocale (int __category, const char *__locale) noexcept (true); extern struct lconv *localeconv (void) noexcept (true); # 141 "/usr/include/locale.h" 3 4 extern locale_t newlocale (int __category_mask, const char *__locale, locale_t __base) noexcept (true); # 176 "/usr/include/locale.h" 3 4 extern locale_t duplocale (locale_t __dataset) noexcept (true); extern void freelocale (locale_t __dataset) noexcept (true); extern locale_t uselocale (locale_t __dataset) noexcept (true); } # 48 "/usr/include/c++/15/clocale" 2 3 namespace std { using ::lconv; using ::setlocale; using ::localeconv; } # 42 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++locale.h" 2 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { extern "C" __typeof(uselocale) __uselocale; } namespace std __attribute__ ((__visibility__ ("default"))) { typedef __locale_t __c_locale; # 73 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++locale.h" 3 inline int __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), char* __out, const int __size __attribute__ ((__unused__)), const char* __fmt, ...) { __c_locale __old = __gnu_cxx::__uselocale(__cloc); # 93 "/usr/include/x86_64-linux-gnu/c++/15/bits/c++locale.h" 3 __builtin_va_list __args; __builtin_va_start(__args, __fmt); const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); __builtin_va_end(__args); __gnu_cxx::__uselocale(__old); return __ret; } } # 43 "/usr/include/c++/15/bits/localefwd.h" 2 3 # 1 "/usr/include/c++/15/iosfwd" 1 3 # 46 "/usr/include/c++/15/iosfwd" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 78 "/usr/include/c++/15/iosfwd" 3 class ios_base; template > class basic_ios; template > class basic_streambuf; template > class basic_istream; template > class basic_ostream; template > class basic_iostream; namespace __cxx11 { template, typename _Alloc = allocator<_CharT> > class basic_stringbuf; template, typename _Alloc = allocator<_CharT> > class basic_istringstream; template, typename _Alloc = allocator<_CharT> > class basic_ostringstream; template, typename _Alloc = allocator<_CharT> > class basic_stringstream; } template > class basic_filebuf; template > class basic_ifstream; template > class basic_ofstream; template > class basic_fstream; template > class istreambuf_iterator; template > class ostreambuf_iterator; typedef basic_ios ios; typedef basic_streambuf streambuf; typedef basic_istream istream; typedef basic_ostream ostream; typedef basic_iostream iostream; typedef basic_stringbuf stringbuf; typedef basic_istringstream istringstream; typedef basic_ostringstream ostringstream; typedef basic_stringstream stringstream; typedef basic_filebuf filebuf; typedef basic_ifstream ifstream; typedef basic_ofstream ofstream; typedef basic_fstream fstream; typedef basic_ios wios; typedef basic_streambuf wstreambuf; typedef basic_istream wistream; typedef basic_ostream wostream; typedef basic_iostream wiostream; typedef basic_stringbuf wstringbuf; typedef basic_istringstream wistringstream; typedef basic_ostringstream wostringstream; typedef basic_stringstream wstringstream; typedef basic_filebuf wfilebuf; typedef basic_ifstream wifstream; typedef basic_ofstream wofstream; typedef basic_fstream wfstream; template, typename _Allocator = allocator<_CharT>> class basic_syncbuf; template, typename _Allocator = allocator<_CharT>> class basic_osyncstream; using syncbuf = basic_syncbuf; using osyncstream = basic_osyncstream; using wsyncbuf = basic_syncbuf; using wosyncstream = basic_osyncstream; template> class basic_spanbuf; template> class basic_ispanstream; template> class basic_ospanstream; template> class basic_spanstream; using spanbuf = basic_spanbuf; using ispanstream = basic_ispanstream; using ospanstream = basic_ospanstream; using spanstream = basic_spanstream; using wspanbuf = basic_spanbuf; using wispanstream = basic_ispanstream; using wospanstream = basic_ospanstream; using wspanstream = basic_spanstream; } # 44 "/usr/include/c++/15/bits/localefwd.h" 2 3 # 1 "/usr/include/c++/15/cctype" 1 3 # 47 "/usr/include/c++/15/cctype" 3 # 1 "/usr/include/ctype.h" 1 3 4 # 28 "/usr/include/ctype.h" 3 4 extern "C" { # 46 "/usr/include/ctype.h" 3 4 enum { _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) }; # 79 "/usr/include/ctype.h" 3 4 extern const unsigned short int **__ctype_b_loc (void) noexcept (true) __attribute__ ((__const__)); extern const __int32_t **__ctype_tolower_loc (void) noexcept (true) __attribute__ ((__const__)); extern const __int32_t **__ctype_toupper_loc (void) noexcept (true) __attribute__ ((__const__)); # 108 "/usr/include/ctype.h" 3 4 extern int isalnum (int) noexcept (true); extern int isalpha (int) noexcept (true); extern int iscntrl (int) noexcept (true); extern int isdigit (int) noexcept (true); extern int islower (int) noexcept (true); extern int isgraph (int) noexcept (true); extern int isprint (int) noexcept (true); extern int ispunct (int) noexcept (true); extern int isspace (int) noexcept (true); extern int isupper (int) noexcept (true); extern int isxdigit (int) noexcept (true); extern int tolower (int __c) noexcept (true); extern int toupper (int __c) noexcept (true); extern int isblank (int) noexcept (true); extern int isctype (int __c, int __mask) noexcept (true); extern int isascii (int __c) noexcept (true); extern int toascii (int __c) noexcept (true); extern int _toupper (int) noexcept (true); extern int _tolower (int) noexcept (true); # 251 "/usr/include/ctype.h" 3 4 extern int isalnum_l (int, locale_t) noexcept (true); extern int isalpha_l (int, locale_t) noexcept (true); extern int iscntrl_l (int, locale_t) noexcept (true); extern int isdigit_l (int, locale_t) noexcept (true); extern int islower_l (int, locale_t) noexcept (true); extern int isgraph_l (int, locale_t) noexcept (true); extern int isprint_l (int, locale_t) noexcept (true); extern int ispunct_l (int, locale_t) noexcept (true); extern int isspace_l (int, locale_t) noexcept (true); extern int isupper_l (int, locale_t) noexcept (true); extern int isxdigit_l (int, locale_t) noexcept (true); extern int isblank_l (int, locale_t) noexcept (true); extern int __tolower_l (int __c, locale_t __l) noexcept (true); extern int tolower_l (int __c, locale_t __l) noexcept (true); extern int __toupper_l (int __c, locale_t __l) noexcept (true); extern int toupper_l (int __c, locale_t __l) noexcept (true); # 327 "/usr/include/ctype.h" 3 4 } # 48 "/usr/include/c++/15/cctype" 2 3 # 64 "/usr/include/c++/15/cctype" 3 namespace std { using ::isalnum; using ::isalpha; using ::iscntrl; using ::isdigit; using ::isgraph; using ::islower; using ::isprint; using ::ispunct; using ::isspace; using ::isupper; using ::isxdigit; using ::tolower; using ::toupper; } namespace std { using ::isblank; } # 45 "/usr/include/c++/15/bits/localefwd.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 57 "/usr/include/c++/15/bits/localefwd.h" 3 class locale; template bool has_facet(const locale&) throw(); template const _Facet& use_facet(const locale&); template bool isspace(_CharT, const locale&); template bool isprint(_CharT, const locale&); template bool iscntrl(_CharT, const locale&); template bool isupper(_CharT, const locale&); template bool islower(_CharT, const locale&); template bool isalpha(_CharT, const locale&); template bool isdigit(_CharT, const locale&); template bool ispunct(_CharT, const locale&); template bool isxdigit(_CharT, const locale&); template bool isalnum(_CharT, const locale&); template bool isgraph(_CharT, const locale&); template bool isblank(_CharT, const locale&); template _CharT toupper(_CharT, const locale&); template _CharT tolower(_CharT, const locale&); struct ctype_base; template class ctype; template<> class ctype; template<> class ctype; template class ctype_byname; class codecvt_base; template class codecvt; template<> class codecvt; template<> class codecvt; template<> class codecvt; template<> class codecvt; template<> class codecvt; template<> class codecvt; template class codecvt_byname; template > class num_get; template > class num_put; namespace __cxx11 { template class numpunct; template class numpunct_byname; } namespace __cxx11 { template class collate; template class collate_byname; } class time_base; namespace __cxx11 { template > class time_get; template > class time_get_byname; } template > class time_put; template > class time_put_byname; class money_base; namespace __cxx11 { template > class money_get; template > class money_put; } namespace __cxx11 { template class moneypunct; template class moneypunct_byname; } struct messages_base; namespace __cxx11 { template class messages; template class messages_byname; } } # 48 "/usr/include/c++/15/string" 2 3 # 1 "/usr/include/c++/15/bits/ostream_insert.h" 1 3 # 38 "/usr/include/c++/15/bits/ostream_insert.h" 3 # 1 "/usr/include/c++/15/bits/cxxabi_forced.h" 1 3 # 38 "/usr/include/c++/15/bits/cxxabi_forced.h" 3 #pragma GCC visibility push(default) namespace __cxxabiv1 { class __forced_unwind { virtual ~__forced_unwind() throw(); virtual void __pure_dummy() = 0; }; } #pragma GCC visibility pop # 39 "/usr/include/c++/15/bits/ostream_insert.h" 2 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++11-extensions" namespace std __attribute__ ((__visibility__ ("default"))) { template inline void __ostream_write(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s, streamsize __n) { typedef basic_ostream<_CharT, _Traits> __ostream_type; typedef typename __ostream_type::ios_base __ios_base; const streamsize __put = __out.rdbuf()->sputn(__s, __n); if (__put != __n) __out.setstate(__ios_base::badbit); } template inline void __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) { typedef basic_ostream<_CharT, _Traits> __ostream_type; typedef typename __ostream_type::ios_base __ios_base; const _CharT __c = __out.fill(); for (; __n > 0; --__n) { const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c); if (_Traits::eq_int_type(__put, _Traits::eof())) { __out.setstate(__ios_base::badbit); break; } } } template basic_ostream<_CharT, _Traits>& __ostream_insert(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s, streamsize __n) { typedef basic_ostream<_CharT, _Traits> __ostream_type; typedef typename __ostream_type::ios_base __ios_base; typename __ostream_type::sentry __cerb(__out); if (__cerb) { try { const streamsize __w = __out.width(); if (__w > __n) { const bool __left = ((__out.flags() & __ios_base::adjustfield) == __ios_base::left); if (!__left) __ostream_fill(__out, __w - __n); if (__out.good()) __ostream_write(__out, __s, __n); if (__left && __out.good()) __ostream_fill(__out, __w - __n); } else __ostream_write(__out, __s, __n); __out.width(0); } catch(__cxxabiv1::__forced_unwind&) { __out._M_setstate(__ios_base::badbit); throw; } catch(...) { __out._M_setstate(__ios_base::badbit); } } return __out; } extern template ostream& __ostream_insert(ostream&, const char*, streamsize); extern template wostream& __ostream_insert(wostream&, const wchar_t*, streamsize); } #pragma GCC diagnostic pop # 49 "/usr/include/c++/15/string" 2 3 # 1 "/usr/include/c++/15/bits/stl_function.h" 1 3 # 66 "/usr/include/c++/15/bits/stl_function.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 119 "/usr/include/c++/15/bits/stl_function.h" 3 template struct unary_function { typedef _Arg argument_type; typedef _Result result_type; } __attribute__ ((__deprecated__)); template struct binary_function { typedef _Arg1 first_argument_type; typedef _Arg2 second_argument_type; typedef _Result result_type; } __attribute__ ((__deprecated__)); # 160 "/usr/include/c++/15/bits/stl_function.h" 3 struct __is_transparent; template struct plus; template struct minus; template struct multiplies; template struct divides; template struct modulus; template struct negate; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template struct plus : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x + __y; } }; template struct minus : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x - __y; } }; template struct multiplies : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x * __y; } }; template struct divides : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x / __y; } }; template struct modulus : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x % __y; } }; template struct negate : public unary_function<_Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x) const { return -__x; } }; #pragma GCC diagnostic pop template<> struct plus { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) + std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) + std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) + std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct minus { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) - std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) - std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) - std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct multiplies { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) * std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) * std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) * std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct divides { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) / std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) / std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) / std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct modulus { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) % std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) % std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) % std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct negate { template constexpr auto operator()(_Tp&& __t) const noexcept(noexcept(-std::forward<_Tp>(__t))) -> decltype(-std::forward<_Tp>(__t)) { return -std::forward<_Tp>(__t); } typedef __is_transparent is_transparent; }; # 349 "/usr/include/c++/15/bits/stl_function.h" 3 template struct equal_to; template struct not_equal_to; template struct greater; template struct less; template struct greater_equal; template struct less_equal; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template struct equal_to : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x == __y; } }; template struct not_equal_to : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x != __y; } }; template struct greater : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x > __y; } }; template struct less : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x < __y; } }; template struct greater_equal : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x >= __y; } }; template struct less_equal : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x <= __y; } }; template struct greater<_Tp*> : public binary_function<_Tp*, _Tp*, bool> { constexpr bool operator()(_Tp* __x, _Tp* __y) const noexcept { if (std::__is_constant_evaluated()) return __x > __y; return (long unsigned int)__x > (long unsigned int)__y; } }; template struct less<_Tp*> : public binary_function<_Tp*, _Tp*, bool> { constexpr bool operator()(_Tp* __x, _Tp* __y) const noexcept { if (std::__is_constant_evaluated()) return __x < __y; return (long unsigned int)__x < (long unsigned int)__y; } }; template struct greater_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> { constexpr bool operator()(_Tp* __x, _Tp* __y) const noexcept { if (std::__is_constant_evaluated()) return __x >= __y; return (long unsigned int)__x >= (long unsigned int)__y; } }; template struct less_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> { constexpr bool operator()(_Tp* __x, _Tp* __y) const noexcept { if (std::__is_constant_evaluated()) return __x <= __y; return (long unsigned int)__x <= (long unsigned int)__y; } }; #pragma GCC diagnostic pop template<> struct equal_to { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) == std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) == std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) == std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct not_equal_to { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) != std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) != std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) != std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct greater { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) > std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) > std::forward<_Up>(__u)) { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++17-extensions" if constexpr (__ptr_cmp<_Tp, _Up>) return greater{}( static_cast(std::forward<_Tp>(__t)), static_cast(std::forward<_Up>(__u))); else return std::forward<_Tp>(__t) > std::forward<_Up>(__u); #pragma GCC diagnostic pop } template constexpr bool operator()(_Tp* __t, _Up* __u) const noexcept { return greater>{}(__t, __u); } typedef __is_transparent is_transparent; private: template static constexpr bool __ptr_cmp = requires { requires ! requires { operator>(std::declval<_Tp>(), std::declval<_Up>()); } && ! requires { std::declval<_Tp>().operator>(std::declval<_Up>()); } && __detail::__not_overloaded_spaceship<_Tp, _Up> && is_convertible_v<_Tp, const volatile void*> && is_convertible_v<_Up, const volatile void*>; }; # 590 "/usr/include/c++/15/bits/stl_function.h" 3 }; template<> struct less { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) < std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) < std::forward<_Up>(__u)) { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++17-extensions" if constexpr (__ptr_cmp<_Tp, _Up>) return less{}( static_cast(std::forward<_Tp>(__t)), static_cast(std::forward<_Up>(__u))); else return std::forward<_Tp>(__t) < std::forward<_Up>(__u); #pragma GCC diagnostic pop } template constexpr bool operator()(_Tp* __t, _Up* __u) const noexcept { return less>{}(__t, __u); } typedef __is_transparent is_transparent; private: template static constexpr bool __ptr_cmp = requires { requires ! requires { operator<(std::declval<_Tp>(), std::declval<_Up>()); } && ! requires { std::declval<_Tp>().operator<(std::declval<_Up>()); } && __detail::__not_overloaded_spaceship<_Tp, _Up> && is_convertible_v<_Tp, const volatile void*> && is_convertible_v<_Up, const volatile void*>; }; # 661 "/usr/include/c++/15/bits/stl_function.h" 3 }; template<> struct greater_equal { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) >= std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) >= std::forward<_Up>(__u)) { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++17-extensions" if constexpr (__ptr_cmp<_Tp, _Up>) return greater_equal{}( static_cast(std::forward<_Tp>(__t)), static_cast(std::forward<_Up>(__u))); else return std::forward<_Tp>(__t) >= std::forward<_Up>(__u); #pragma GCC diagnostic pop } template constexpr bool operator()(_Tp* __t, _Up* __u) const noexcept { return greater_equal>{}(__t, __u); } typedef __is_transparent is_transparent; private: template static constexpr bool __ptr_cmp = requires { requires ! requires { operator>=(std::declval<_Tp>(), std::declval<_Up>()); } && ! requires { std::declval<_Tp>().operator>=(std::declval<_Up>()); } && __detail::__not_overloaded_spaceship<_Tp, _Up> && is_convertible_v<_Tp, const volatile void*> && is_convertible_v<_Up, const volatile void*>; }; # 732 "/usr/include/c++/15/bits/stl_function.h" 3 }; template<> struct less_equal { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) <= std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) <= std::forward<_Up>(__u)) { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++17-extensions" if constexpr (__ptr_cmp<_Tp, _Up>) return less_equal{}( static_cast(std::forward<_Tp>(__t)), static_cast(std::forward<_Up>(__u))); else return std::forward<_Tp>(__t) <= std::forward<_Up>(__u); #pragma GCC diagnostic pop } template constexpr bool operator()(_Tp* __t, _Up* __u) const noexcept { return less_equal>{}(__t, __u); } typedef __is_transparent is_transparent; private: template static constexpr bool __ptr_cmp = requires { requires ! requires { operator<=(std::declval<_Tp>(), std::declval<_Up>()); } && ! requires { std::declval<_Tp>().operator<=(std::declval<_Up>()); } && __detail::__not_overloaded_spaceship<_Tp, _Up> && is_convertible_v<_Tp, const volatile void*> && is_convertible_v<_Up, const volatile void*>; }; # 803 "/usr/include/c++/15/bits/stl_function.h" 3 }; # 817 "/usr/include/c++/15/bits/stl_function.h" 3 template struct logical_and; template struct logical_or; template struct logical_not; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template struct logical_and : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x && __y; } }; template struct logical_or : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x || __y; } }; template struct logical_not : public unary_function<_Tp, bool> { constexpr bool operator()(const _Tp& __x) const { return !__x; } }; #pragma GCC diagnostic pop template<> struct logical_and { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) && std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) && std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) && std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct logical_or { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) || std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) || std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) || std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct logical_not { template constexpr auto operator()(_Tp&& __t) const noexcept(noexcept(!std::forward<_Tp>(__t))) -> decltype(!std::forward<_Tp>(__t)) { return !std::forward<_Tp>(__t); } typedef __is_transparent is_transparent; }; template struct bit_and; template struct bit_or; template struct bit_xor; template struct bit_not; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template struct bit_and : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x & __y; } }; template struct bit_or : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x | __y; } }; template struct bit_xor : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x ^ __y; } }; template struct bit_not : public unary_function<_Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x) const { return ~__x; } }; #pragma GCC diagnostic pop template <> struct bit_and { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) & std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) & std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) & std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template <> struct bit_or { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) | std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) | std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) | std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template <> struct bit_xor { template constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) ^ std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template <> struct bit_not { template constexpr auto operator()(_Tp&& __t) const noexcept(noexcept(~std::forward<_Tp>(__t))) -> decltype(~std::forward<_Tp>(__t)) { return ~std::forward<_Tp>(__t); } typedef __is_transparent is_transparent; }; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" # 1059 "/usr/include/c++/15/bits/stl_function.h" 3 template class [[__deprecated__]] unary_negate : public unary_function { protected: _Predicate _M_pred; public: constexpr explicit unary_negate(const _Predicate& __x) : _M_pred(__x) { } constexpr bool operator()(const typename _Predicate::argument_type& __x) const { return !_M_pred(__x); } }; template __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) constexpr inline unary_negate<_Predicate> not1(const _Predicate& __pred) { return unary_negate<_Predicate>(__pred); } template class [[__deprecated__]] binary_negate : public binary_function { protected: _Predicate _M_pred; public: constexpr explicit binary_negate(const _Predicate& __x) : _M_pred(__x) { } constexpr bool operator()(const typename _Predicate::first_argument_type& __x, const typename _Predicate::second_argument_type& __y) const { return !_M_pred(__x, __y); } }; template __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) constexpr inline binary_negate<_Predicate> not2(const _Predicate& __pred) { return binary_negate<_Predicate>(__pred); } # 1140 "/usr/include/c++/15/bits/stl_function.h" 3 template class pointer_to_unary_function : public unary_function<_Arg, _Result> { protected: _Result (*_M_ptr)(_Arg); public: pointer_to_unary_function() { } explicit pointer_to_unary_function(_Result (*__x)(_Arg)) : _M_ptr(__x) { } _Result operator()(_Arg __x) const { return _M_ptr(__x); } } __attribute__ ((__deprecated__)); template __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) inline pointer_to_unary_function<_Arg, _Result> ptr_fun(_Result (*__x)(_Arg)) { return pointer_to_unary_function<_Arg, _Result>(__x); } template class pointer_to_binary_function : public binary_function<_Arg1, _Arg2, _Result> { protected: _Result (*_M_ptr)(_Arg1, _Arg2); public: pointer_to_binary_function() { } explicit pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2)) : _M_ptr(__x) { } _Result operator()(_Arg1 __x, _Arg2 __y) const { return _M_ptr(__x, __y); } } __attribute__ ((__deprecated__)); template __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) inline pointer_to_binary_function<_Arg1, _Arg2, _Result> ptr_fun(_Result (*__x)(_Arg1, _Arg2)) { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); } template struct _Identity : public unary_function<_Tp, _Tp> { _Tp& operator()(_Tp& __x) const { return __x; } const _Tp& operator()(const _Tp& __x) const { return __x; } }; template struct _Identity : _Identity<_Tp> { }; template struct _Select1st : public unary_function<_Pair, typename _Pair::first_type> { typename _Pair::first_type& operator()(_Pair& __x) const { return __x.first; } const typename _Pair::first_type& operator()(const _Pair& __x) const { return __x.first; } template typename _Pair2::first_type& operator()(_Pair2& __x) const { return __x.first; } template const typename _Pair2::first_type& operator()(const _Pair2& __x) const { return __x.first; } }; template struct _Select2nd : public unary_function<_Pair, typename _Pair::second_type> { typename _Pair::second_type& operator()(_Pair& __x) const { return __x.second; } const typename _Pair::second_type& operator()(const _Pair& __x) const { return __x.second; } }; # 1267 "/usr/include/c++/15/bits/stl_function.h" 3 template class mem_fun_t : public unary_function<_Tp*, _Ret> { public: explicit mem_fun_t(_Ret (_Tp::*__pf)()) : _M_f(__pf) { } _Ret operator()(_Tp* __p) const { return (__p->*_M_f)(); } private: _Ret (_Tp::*_M_f)(); } __attribute__ ((__deprecated__)); template class const_mem_fun_t : public unary_function { public: explicit const_mem_fun_t(_Ret (_Tp::*__pf)() const) : _M_f(__pf) { } _Ret operator()(const _Tp* __p) const { return (__p->*_M_f)(); } private: _Ret (_Tp::*_M_f)() const; } __attribute__ ((__deprecated__)); template class mem_fun_ref_t : public unary_function<_Tp, _Ret> { public: explicit mem_fun_ref_t(_Ret (_Tp::*__pf)()) : _M_f(__pf) { } _Ret operator()(_Tp& __r) const { return (__r.*_M_f)(); } private: _Ret (_Tp::*_M_f)(); } __attribute__ ((__deprecated__)); template class const_mem_fun_ref_t : public unary_function<_Tp, _Ret> { public: explicit const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) : _M_f(__pf) { } _Ret operator()(const _Tp& __r) const { return (__r.*_M_f)(); } private: _Ret (_Tp::*_M_f)() const; } __attribute__ ((__deprecated__)); template class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret> { public: explicit mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) : _M_f(__pf) { } _Ret operator()(_Tp* __p, _Arg __x) const { return (__p->*_M_f)(__x); } private: _Ret (_Tp::*_M_f)(_Arg); } __attribute__ ((__deprecated__)); template class const_mem_fun1_t : public binary_function { public: explicit const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) : _M_f(__pf) { } _Ret operator()(const _Tp* __p, _Arg __x) const { return (__p->*_M_f)(__x); } private: _Ret (_Tp::*_M_f)(_Arg) const; } __attribute__ ((__deprecated__)); template class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> { public: explicit mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) : _M_f(__pf) { } _Ret operator()(_Tp& __r, _Arg __x) const { return (__r.*_M_f)(__x); } private: _Ret (_Tp::*_M_f)(_Arg); } __attribute__ ((__deprecated__)); template class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> { public: explicit const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) : _M_f(__pf) { } _Ret operator()(const _Tp& __r, _Arg __x) const { return (__r.*_M_f)(__x); } private: _Ret (_Tp::*_M_f)(_Arg) const; } __attribute__ ((__deprecated__)); template __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline mem_fun_t<_Ret, _Tp> mem_fun(_Ret (_Tp::*__f)()) { return mem_fun_t<_Ret, _Tp>(__f); } template __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline const_mem_fun_t<_Ret, _Tp> mem_fun(_Ret (_Tp::*__f)() const) { return const_mem_fun_t<_Ret, _Tp>(__f); } template __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline mem_fun_ref_t<_Ret, _Tp> mem_fun_ref(_Ret (_Tp::*__f)()) { return mem_fun_ref_t<_Ret, _Tp>(__f); } template __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline const_mem_fun_ref_t<_Ret, _Tp> mem_fun_ref(_Ret (_Tp::*__f)() const) { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } template __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline mem_fun1_t<_Ret, _Tp, _Arg> mem_fun(_Ret (_Tp::*__f)(_Arg)) { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } template __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline const_mem_fun1_t<_Ret, _Tp, _Arg> mem_fun(_Ret (_Tp::*__f)(_Arg) const) { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } template __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline mem_fun1_ref_t<_Ret, _Tp, _Arg> mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } template __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } #pragma GCC diagnostic pop template> struct __has_is_transparent { }; template struct __has_is_transparent<_Func, _SfinaeType, __void_t> { typedef void type; }; template using __has_is_transparent_t = typename __has_is_transparent<_Func, _SfinaeType>::type; template concept __transparent_comparator = requires { typename _Func::is_transparent; }; } # 1 "/usr/include/c++/15/backward/binders.h" 1 3 # 60 "/usr/include/c++/15/backward/binders.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" namespace std __attribute__ ((__visibility__ ("default"))) { # 107 "/usr/include/c++/15/backward/binders.h" 3 template class binder1st : public unary_function { protected: _Operation op; typename _Operation::first_argument_type value; public: binder1st(const _Operation& __x, const typename _Operation::first_argument_type& __y) : op(__x), value(__y) { } typename _Operation::result_type operator()(const typename _Operation::second_argument_type& __x) const { return op(value, __x); } typename _Operation::result_type operator()(typename _Operation::second_argument_type& __x) const { return op(value, __x); } } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); template __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) inline binder1st<_Operation> bind1st(const _Operation& __fn, const _Tp& __x) { typedef typename _Operation::first_argument_type _Arg1_type; return binder1st<_Operation>(__fn, _Arg1_type(__x)); } template class binder2nd : public unary_function { protected: _Operation op; typename _Operation::second_argument_type value; public: binder2nd(const _Operation& __x, const typename _Operation::second_argument_type& __y) : op(__x), value(__y) { } typename _Operation::result_type operator()(const typename _Operation::first_argument_type& __x) const { return op(__x, value); } typename _Operation::result_type operator()(typename _Operation::first_argument_type& __x) const { return op(__x, value); } } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); template __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) inline binder2nd<_Operation> bind2nd(const _Operation& __fn, const _Tp& __x) { typedef typename _Operation::second_argument_type _Arg2_type; return binder2nd<_Operation>(__fn, _Arg2_type(__x)); } } #pragma GCC diagnostic pop # 1481 "/usr/include/c++/15/bits/stl_function.h" 2 3 # 52 "/usr/include/c++/15/string" 2 3 # 1 "/usr/include/c++/15/bits/refwrap.h" 1 3 # 47 "/usr/include/c++/15/bits/refwrap.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 58 "/usr/include/c++/15/bits/refwrap.h" 3 template struct _Maybe_unary_or_binary_function { }; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template struct _Maybe_unary_or_binary_function<_Res, _T1> : std::unary_function<_T1, _Res> { }; template struct _Maybe_unary_or_binary_function<_Res, _T1, _T2> : std::binary_function<_T1, _T2, _Res> { }; #pragma GCC diagnostic pop template struct _Mem_fn_traits; template struct _Mem_fn_traits_base { using __result_type = _Res; using __maybe_type = _Maybe_unary_or_binary_function<_Res, _Class*, _ArgTypes...>; using __arity = integral_constant; }; # 109 "/usr/include/c++/15/bits/refwrap.h" 3 template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) > : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) > : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const > : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) const > : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) volatile > : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) volatile > : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const volatile > : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) const volatile > : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) &> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) &> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const &> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) const &> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) volatile &> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) volatile &> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const volatile &> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) const volatile &> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) &&> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) &&> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const &&> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) const &&> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) volatile &&> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) volatile &&> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const volatile &&> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) const volatile &&> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) noexcept> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) noexcept> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const noexcept> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) const noexcept> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) volatile noexcept> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) volatile noexcept> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const volatile noexcept> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) const volatile noexcept> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) & noexcept> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) & noexcept> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const & noexcept> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) const & noexcept> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) volatile & noexcept> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) volatile & noexcept> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const volatile & noexcept> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) const volatile & noexcept> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) && noexcept> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) && noexcept> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const && noexcept> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) const && noexcept> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) volatile && noexcept> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) volatile && noexcept> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const volatile && noexcept> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes..., ...) const volatile && noexcept> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template> struct _Maybe_get_result_type { }; template struct _Maybe_get_result_type<_Functor, __void_t> { typedef typename _Functor::result_type result_type; }; template struct _Weak_result_type_impl : _Maybe_get_result_type<_Functor> { }; template struct _Weak_result_type_impl<_Res(_ArgTypes...) noexcept (_NE)> { typedef _Res result_type; }; template struct _Weak_result_type_impl<_Res(_ArgTypes..., ...) noexcept (_NE)> { typedef _Res result_type; }; template struct _Weak_result_type_impl<_Res(*)(_ArgTypes...) noexcept (_NE)> { typedef _Res result_type; }; template struct _Weak_result_type_impl<_Res(*)(_ArgTypes..., ...) noexcept (_NE)> { typedef _Res result_type; }; template::value> struct _Weak_result_type_memfun : _Weak_result_type_impl<_Functor> { }; template struct _Weak_result_type_memfun<_MemFunPtr, true> { using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; }; template struct _Weak_result_type_memfun<_Func _Class::*, false> { }; template struct _Weak_result_type : _Weak_result_type_memfun::type> { }; # 309 "/usr/include/c++/15/bits/refwrap.h" 3 template class reference_wrapper { _Tp* _M_data; constexpr static _Tp* _S_fun(_Tp& __r) noexcept { return std::__addressof(__r); } static void _S_fun(_Tp&&) = delete; template> using __not_same = typename enable_if::value>::type; public: typedef _Tp type; template, typename = decltype(reference_wrapper::_S_fun(std::declval<_Up>()))> constexpr reference_wrapper(_Up&& __uref) noexcept(noexcept(reference_wrapper::_S_fun(std::declval<_Up>()))) : _M_data(reference_wrapper::_S_fun(std::forward<_Up>(__uref))) { } reference_wrapper(const reference_wrapper&) = default; reference_wrapper& operator=(const reference_wrapper&) = default; constexpr operator _Tp&() const noexcept { return this->get(); } constexpr _Tp& get() const noexcept { return *_M_data; } template constexpr typename __invoke_result<_Tp&, _Args...>::type operator()(_Args&&... __args) const noexcept(__is_nothrow_invocable<_Tp&, _Args...>::value) { if constexpr (is_object_v) static_assert(sizeof(type), "type must be complete"); return std::__invoke(get(), std::forward<_Args>(__args)...); } # 415 "/usr/include/c++/15/bits/refwrap.h" 3 }; template reference_wrapper(_Tp&) -> reference_wrapper<_Tp>; template constexpr inline reference_wrapper<_Tp> ref(_Tp& __t) noexcept { return reference_wrapper<_Tp>(__t); } template constexpr inline reference_wrapper cref(const _Tp& __t) noexcept { return reference_wrapper(__t); } template void ref(const _Tp&&) = delete; template void cref(const _Tp&&) = delete; template constexpr inline reference_wrapper<_Tp> ref(reference_wrapper<_Tp> __t) noexcept { return __t; } template constexpr inline reference_wrapper cref(reference_wrapper<_Tp> __t) noexcept { return { __t.get() }; } } # 55 "/usr/include/c++/15/string" 2 3 # 1 "/usr/include/c++/15/bits/range_access.h" 1 3 # 42 "/usr/include/c++/15/bits/range_access.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto begin(_Container& __cont) noexcept(noexcept(__cont.begin())) -> decltype(__cont.begin()) { return __cont.begin(); } template [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto begin(const _Container& __cont) noexcept(noexcept(__cont.begin())) -> decltype(__cont.begin()) { return __cont.begin(); } template [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto end(_Container& __cont) noexcept(noexcept(__cont.end())) -> decltype(__cont.end()) { return __cont.end(); } template [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto end(const _Container& __cont) noexcept(noexcept(__cont.end())) -> decltype(__cont.end()) { return __cont.end(); } template [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr _Tp* begin(_Tp (&__arr)[_Nm]) noexcept { return __arr; } template [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr _Tp* end(_Tp (&__arr)[_Nm]) noexcept { return __arr + _Nm; } template class valarray; template _Tp* begin(valarray<_Tp>&) noexcept; template const _Tp* begin(const valarray<_Tp>&) noexcept; template _Tp* end(valarray<_Tp>&) noexcept; template const _Tp* end(const valarray<_Tp>&) noexcept; template [[__nodiscard__, __gnu__::__always_inline__]] constexpr auto cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont))) -> decltype(std::begin(__cont)) { return std::begin(__cont); } template [[__nodiscard__, __gnu__::__always_inline__]] constexpr auto cend(const _Container& __cont) noexcept(noexcept(std::end(__cont))) -> decltype(std::end(__cont)) { return std::end(__cont); } template [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto rbegin(_Container& __cont) noexcept(noexcept(__cont.rbegin())) -> decltype(__cont.rbegin()) { return __cont.rbegin(); } template [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto rbegin(const _Container& __cont) noexcept(noexcept(__cont.rbegin())) -> decltype(__cont.rbegin()) { return __cont.rbegin(); } template [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto rend(_Container& __cont) noexcept(noexcept(__cont.rend())) -> decltype(__cont.rend()) { return __cont.rend(); } template [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto rend(const _Container& __cont) noexcept(noexcept(__cont.rend())) -> decltype(__cont.rend()) { return __cont.rend(); } template [[__nodiscard__]] inline constexpr reverse_iterator<_Tp*> rbegin(_Tp (&__arr)[_Nm]) noexcept { return reverse_iterator<_Tp*>(__arr + _Nm); } template [[__nodiscard__]] inline constexpr reverse_iterator<_Tp*> rend(_Tp (&__arr)[_Nm]) noexcept { return reverse_iterator<_Tp*>(__arr); } template [[__nodiscard__]] inline constexpr reverse_iterator rbegin(initializer_list<_Tp> __il) noexcept { return reverse_iterator(__il.end()); } template [[__nodiscard__]] inline constexpr reverse_iterator rend(initializer_list<_Tp> __il) noexcept { return reverse_iterator(__il.begin()); } template [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto crbegin(const _Container& __cont) noexcept(noexcept(std::rbegin(__cont))) -> decltype(std::rbegin(__cont)) { return std::rbegin(__cont); } template [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto crend(const _Container& __cont) noexcept(noexcept(std::rend(__cont))) -> decltype(std::rend(__cont)) { return std::rend(__cont); } # 271 "/usr/include/c++/15/bits/range_access.h" 3 template [[nodiscard, __gnu__::__always_inline__]] constexpr auto size(const _Container& __cont) noexcept(noexcept(__cont.size())) -> decltype(__cont.size()) { return __cont.size(); } template [[nodiscard, __gnu__::__always_inline__]] constexpr size_t size(const _Tp (&)[_Nm]) noexcept { return _Nm; } template [[nodiscard, __gnu__::__always_inline__]] constexpr auto empty(const _Container& __cont) noexcept(noexcept(__cont.empty())) -> decltype(__cont.empty()) { return __cont.empty(); } template [[nodiscard, __gnu__::__always_inline__]] constexpr bool empty(const _Tp (&)[_Nm]) noexcept { return false; } template [[nodiscard, __gnu__::__always_inline__]] constexpr bool empty(initializer_list<_Tp> __il) noexcept { return __il.size() == 0;} template [[nodiscard, __gnu__::__always_inline__]] constexpr auto data(_Container& __cont) noexcept(noexcept(__cont.data())) -> decltype(__cont.data()) { return __cont.data(); } template [[nodiscard, __gnu__::__always_inline__]] constexpr auto data(const _Container& __cont) noexcept(noexcept(__cont.data())) -> decltype(__cont.data()) { return __cont.data(); } template [[nodiscard, __gnu__::__always_inline__]] constexpr _Tp* data(_Tp (&__array)[_Nm]) noexcept { return __array; } template [[nodiscard, __gnu__::__always_inline__]] constexpr const _Tp* data(initializer_list<_Tp> __il) noexcept { return __il.begin(); } template [[nodiscard, __gnu__::__always_inline__]] constexpr auto ssize(const _Container& __cont) noexcept(noexcept(__cont.size())) -> common_type_t> { using type = make_signed_t; return static_cast>(__cont.size()); } template [[nodiscard, __gnu__::__always_inline__]] constexpr ptrdiff_t ssize(const _Tp (&)[_Num]) noexcept { return _Num; } } # 56 "/usr/include/c++/15/string" 2 3 # 1 "/usr/include/c++/15/bits/basic_string.h" 1 3 # 41 "/usr/include/c++/15/bits/basic_string.h" 3 # 1 "/usr/include/c++/15/ext/alloc_traits.h" 1 3 # 36 "/usr/include/c++/15/ext/alloc_traits.h" 3 # 1 "/usr/include/c++/15/bits/alloc_traits.h" 1 3 # 46 "/usr/include/c++/15/bits/alloc_traits.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 52 "/usr/include/c++/15/bits/alloc_traits.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++14-extensions" #pragma GCC diagnostic ignored "-Wc++17-extensions" struct __allocator_traits_base { template struct __rebind : __replace_first_arg<_Tp, _Up> { static_assert(is_same< typename __replace_first_arg<_Tp, typename _Tp::value_type>::type, _Tp>::value, "allocator_traits::rebind_alloc must be A"); }; template requires requires { typename _Tp::template rebind<_Up>::other; } struct __rebind<_Tp, _Up> { using type = typename _Tp::template rebind<_Up>::other; static_assert(is_same< typename _Tp::template rebind::other, _Tp>::value, "allocator_traits::rebind_alloc must be A"); }; protected: template using __pointer = typename _Tp::pointer; template using __c_pointer = typename _Tp::const_pointer; template using __v_pointer = typename _Tp::void_pointer; template using __cv_pointer = typename _Tp::const_void_pointer; template using __pocca = typename _Tp::propagate_on_container_copy_assignment; template using __pocma = typename _Tp::propagate_on_container_move_assignment; template using __pocs = typename _Tp::propagate_on_container_swap; template using __equal = __type_identity; template static constexpr bool __has_allocate_hint = requires (_Alloc& __a, _Sz __n, _Vp __hint) { __a.allocate(__n, __hint); }; # 133 "/usr/include/c++/15/bits/alloc_traits.h" 3 template static constexpr bool __has_construct = requires (_Alloc& __a, _Tp* __p, _Args&&... __args) { __a.construct(__p, std::forward<_Args>(__args)...); }; template static constexpr bool __can_construct_at = requires (_Tp* __p, _Args&&... __args) { std::construct_at(__p, std::forward<_Args>(__args)...); }; template static constexpr bool __can_construct = __has_construct<_Alloc, _Tp, _Args...> || __can_construct_at<_Tp, _Args...>; # 184 "/usr/include/c++/15/bits/alloc_traits.h" 3 template static constexpr bool __has_destroy = requires (_Alloc& __a, _Tp* __p) { __a.destroy(__p); }; # 202 "/usr/include/c++/15/bits/alloc_traits.h" 3 template static constexpr bool __has_max_size = requires (const _Alloc& __a) { __a.max_size(); }; # 220 "/usr/include/c++/15/bits/alloc_traits.h" 3 template static constexpr bool __has_soccc = requires (const _Alloc& __a) { __a.select_on_container_copy_construction(); }; # 235 "/usr/include/c++/15/bits/alloc_traits.h" 3 }; template using __alloc_rebind = typename __allocator_traits_base::template __rebind<_Alloc, _Up>::type; # 248 "/usr/include/c++/15/bits/alloc_traits.h" 3 template struct allocator_traits : __allocator_traits_base { typedef _Alloc allocator_type; typedef typename _Alloc::value_type value_type; using pointer = __detected_or_t; private: template class _Func, typename _Tp, typename = void> struct _Ptr { using type = typename pointer_traits::template rebind<_Tp>; }; template class _Func, typename _Tp> struct _Ptr<_Func, _Tp, __void_t<_Func<_Alloc>>> { using type = _Func<_Alloc>; }; template struct _Diff { using type = typename pointer_traits<_PtrT>::difference_type; }; template struct _Diff<_A2, _PtrT, __void_t> { using type = typename _A2::difference_type; }; template struct _Size : make_unsigned<_DiffT> { }; template struct _Size<_A2, _DiffT, __void_t> { using type = typename _A2::size_type; }; public: using const_pointer = typename _Ptr<__c_pointer, const value_type>::type; using void_pointer = typename _Ptr<__v_pointer, void>::type; using const_void_pointer = typename _Ptr<__cv_pointer, const void>::type; using difference_type = typename _Diff<_Alloc, pointer>::type; using size_type = typename _Size<_Alloc, difference_type>::type; using propagate_on_container_copy_assignment = __detected_or_t; using propagate_on_container_move_assignment = __detected_or_t; using propagate_on_container_swap = __detected_or_t; using is_always_equal = typename __detected_or_t, __equal, _Alloc>::type; template using rebind_alloc = __alloc_rebind<_Alloc, _Tp>; template using rebind_traits = allocator_traits>; # 383 "/usr/include/c++/15/bits/alloc_traits.h" 3 [[__nodiscard__]] static constexpr pointer allocate(_Alloc& __a, size_type __n) { return __a.allocate(__n); } # 398 "/usr/include/c++/15/bits/alloc_traits.h" 3 [[__nodiscard__]] static constexpr pointer allocate(_Alloc& __a, size_type __n, const_void_pointer __hint) { if constexpr (__has_allocate_hint<_Alloc, size_type, const_void_pointer>) return __a.allocate(__n, __hint); else return __a.allocate(__n); } # 415 "/usr/include/c++/15/bits/alloc_traits.h" 3 static constexpr void deallocate(_Alloc& __a, pointer __p, size_type __n) { __a.deallocate(__p, __n); } # 430 "/usr/include/c++/15/bits/alloc_traits.h" 3 template requires __can_construct<_Alloc, _Tp, _Args...> static constexpr void construct(_Alloc& __a, _Tp* __p, _Args&&... __args) noexcept(_S_nothrow_construct<_Tp, _Args...>()) { if constexpr (__has_construct<_Alloc, _Tp, _Args...>) __a.construct(__p, std::forward<_Args>(__args)...); else std::_Construct(__p, std::forward<_Args>(__args)...); } # 454 "/usr/include/c++/15/bits/alloc_traits.h" 3 template static constexpr void destroy(_Alloc& __a, _Tp* __p) noexcept(_S_nothrow_destroy<_Tp>()) { if constexpr (__has_destroy<_Alloc, _Tp>) __a.destroy(__p); else std::_Destroy(__p); } # 473 "/usr/include/c++/15/bits/alloc_traits.h" 3 static constexpr size_type max_size(const _Alloc& __a) noexcept { if constexpr (__has_max_size<_Alloc>) return __a.max_size(); else return __gnu_cxx::__numeric_traits::__max / sizeof(value_type); } # 493 "/usr/include/c++/15/bits/alloc_traits.h" 3 static constexpr _Alloc select_on_container_copy_construction(const _Alloc& __rhs) { if constexpr (__has_soccc<_Alloc>) return __rhs.select_on_container_copy_construction(); else return __rhs; } private: template static constexpr bool _S_nothrow_construct(_Alloc* __a = nullptr, _Tp* __p = nullptr) { if constexpr (__has_construct<_Alloc, _Tp, _Args...>) return noexcept(__a->construct(__p, std::declval<_Args>()...)); else return __is_nothrow_new_constructible<_Tp, _Args...>; } template static constexpr bool _S_nothrow_destroy(_Alloc* __a = nullptr, _Tp* __p = nullptr) { if constexpr (__has_destroy<_Alloc, _Tp>) return noexcept(__a->destroy(__p)); else return is_nothrow_destructible<_Tp>::value; } # 548 "/usr/include/c++/15/bits/alloc_traits.h" 3 }; #pragma GCC diagnostic pop # 559 "/usr/include/c++/15/bits/alloc_traits.h" 3 template struct allocator_traits> { using allocator_type = allocator<_Tp>; using value_type = _Tp; using pointer = _Tp*; using const_pointer = const _Tp*; using void_pointer = void*; using const_void_pointer = const void*; using difference_type = std::ptrdiff_t; using size_type = std::size_t; using propagate_on_container_copy_assignment = false_type; using propagate_on_container_move_assignment = true_type; using propagate_on_container_swap = false_type; using is_always_equal = true_type; template using rebind_alloc = allocator<_Up>; template using rebind_traits = allocator_traits>; # 611 "/usr/include/c++/15/bits/alloc_traits.h" 3 [[__nodiscard__,__gnu__::__always_inline__]] static constexpr pointer allocate(allocator_type& __a, size_type __n) { return __a.allocate(__n); } # 626 "/usr/include/c++/15/bits/alloc_traits.h" 3 [[__nodiscard__,__gnu__::__always_inline__]] static constexpr pointer allocate(allocator_type& __a, size_type __n, [[maybe_unused]] const_void_pointer __hint) { return __a.allocate(__n); } # 646 "/usr/include/c++/15/bits/alloc_traits.h" 3 [[__gnu__::__always_inline__]] static constexpr void deallocate(allocator_type& __a, pointer __p, size_type __n) { __a.deallocate(__p, __n); } # 662 "/usr/include/c++/15/bits/alloc_traits.h" 3 template [[__gnu__::__always_inline__]] static constexpr void construct(allocator_type& __a __attribute__((__unused__)), _Up* __p, _Args&&... __args) noexcept(__is_nothrow_new_constructible<_Up, _Args...>) { std::construct_at(__p, std::forward<_Args>(__args)...); } # 689 "/usr/include/c++/15/bits/alloc_traits.h" 3 template [[__gnu__::__always_inline__]] static constexpr void destroy(allocator_type& __a __attribute__((__unused__)), _Up* __p) noexcept(is_nothrow_destructible<_Up>::value) { std::destroy_at(__p); } [[__gnu__::__always_inline__]] static constexpr size_type max_size(const allocator_type& __a __attribute__((__unused__))) noexcept { return size_t(-1) / sizeof(value_type); } [[__gnu__::__always_inline__]] static constexpr allocator_type select_on_container_copy_construction(const allocator_type& __rhs) { return __rhs; } }; # 736 "/usr/include/c++/15/bits/alloc_traits.h" 3 template<> struct allocator_traits> { using allocator_type = allocator; using value_type = void; using pointer = void*; using const_pointer = const void*; using void_pointer = void*; using const_void_pointer = const void*; using difference_type = std::ptrdiff_t; using size_type = std::size_t; using propagate_on_container_copy_assignment = false_type; using propagate_on_container_move_assignment = true_type; using propagate_on_container_swap = false_type; using is_always_equal = true_type; template using rebind_alloc = allocator<_Up>; template using rebind_traits = allocator_traits>; static void* allocate(allocator_type&, size_type, const void* = nullptr) = delete; static void deallocate(allocator_type&, void*, size_type) = delete; # 800 "/usr/include/c++/15/bits/alloc_traits.h" 3 template [[__gnu__::__always_inline__]] static constexpr void construct(allocator_type&, _Up* __p, _Args&&... __args) noexcept(__is_nothrow_new_constructible<_Up, _Args...>) { std::_Construct(__p, std::forward<_Args>(__args)...); } # 814 "/usr/include/c++/15/bits/alloc_traits.h" 3 template [[__gnu__::__always_inline__]] static constexpr void destroy(allocator_type&, _Up* __p) noexcept(is_nothrow_destructible<_Up>::value) { std::_Destroy(__p); } static size_type max_size(const allocator_type&) = delete; [[__gnu__::__always_inline__]] static constexpr allocator_type select_on_container_copy_construction(const allocator_type& __rhs) { return __rhs; } }; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++17-extensions" template [[__gnu__::__always_inline__]] constexpr inline void __alloc_on_copy(_Alloc& __one, const _Alloc& __two) { using __traits = allocator_traits<_Alloc>; using __pocca = typename __traits::propagate_on_container_copy_assignment::type; if constexpr (__pocca::value) __one = __two; } template [[__gnu__::__always_inline__]] constexpr _Alloc __alloc_on_copy(const _Alloc& __a) { typedef allocator_traits<_Alloc> __traits; return __traits::select_on_container_copy_construction(__a); } template [[__gnu__::__always_inline__]] constexpr inline void __alloc_on_move(_Alloc& __one, _Alloc& __two) { using __traits = allocator_traits<_Alloc>; using __pocma = typename __traits::propagate_on_container_move_assignment::type; if constexpr (__pocma::value) __one = std::move(__two); } template [[__gnu__::__always_inline__]] constexpr inline void __alloc_on_swap(_Alloc& __one, _Alloc& __two) { using __traits = allocator_traits<_Alloc>; using __pocs = typename __traits::propagate_on_container_swap::type; if constexpr (__pocs::value) { using std::swap; swap(__one, __two); } } #pragma GCC diagnostic pop template, typename = void> struct __is_alloc_insertable_impl : false_type { }; template struct __is_alloc_insertable_impl<_Alloc, _Tp, _ValueT, __void_t::construct( std::declval<_Alloc&>(), std::declval<_ValueT*>(), std::declval<_Tp>()))>> : true_type { }; template struct __is_copy_insertable : __is_alloc_insertable_impl<_Alloc, typename _Alloc::value_type const&>::type { }; template struct __is_copy_insertable> : is_copy_constructible<_Tp> { }; template struct __is_move_insertable : __is_alloc_insertable_impl<_Alloc, typename _Alloc::value_type>::type { }; template struct __is_move_insertable> : is_move_constructible<_Tp> { }; template struct __is_allocator : false_type { }; template struct __is_allocator<_Alloc, __void_t().allocate(size_t{}))>> : true_type { }; template using _RequireAllocator = typename enable_if<__is_allocator<_Alloc>::value, _Alloc>::type; template using _RequireNotAllocator = typename enable_if::value, _Alloc>::type; template concept __allocator_like = requires (_Alloc& __a) { typename _Alloc::value_type; __a.deallocate(__a.allocate(1u), 1u); }; template concept __not_allocator_like = !__allocator_like<_Alloc>; template struct __alloc_swap { static void _S_do_it(_Alloc&, _Alloc&) noexcept { } }; template struct __alloc_swap<_Alloc, false> { static void _S_do_it(_Alloc& __one, _Alloc& __two) noexcept { if (__one != __two) swap(__one, __two); } }; template, is_nothrow_move_constructible>::value> struct __shrink_to_fit_aux { static bool _S_do_it(_Tp&) noexcept { return false; } }; template struct __shrink_to_fit_aux<_Tp, true> { constexpr static bool _S_do_it(_Tp& __c) noexcept { try { _Tp(__make_move_if_noexcept_iterator(__c.begin()), __make_move_if_noexcept_iterator(__c.end()), __c.get_allocator()).swap(__c); return true; } catch(...) { return false; } } }; # 1023 "/usr/include/c++/15/bits/alloc_traits.h" 3 template constexpr void _Destroy(_ForwardIterator __first, _ForwardIterator __last, _Allocator& __alloc) { for (; __first != __last; ++__first) allocator_traits<_Allocator>::destroy(__alloc, std::__addressof(*__first)); } template __attribute__((__always_inline__)) constexpr inline void _Destroy(_ForwardIterator __first, _ForwardIterator __last, allocator<_Tp>&) { std::_Destroy(__first, __last); } } # 37 "/usr/include/c++/15/ext/alloc_traits.h" 2 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { template struct __alloc_traits : std::allocator_traits<_Alloc> { typedef _Alloc allocator_type; typedef std::allocator_traits<_Alloc> _Base_type; typedef typename _Base_type::value_type value_type; typedef typename _Base_type::pointer pointer; typedef typename _Base_type::const_pointer const_pointer; typedef typename _Base_type::size_type size_type; typedef typename _Base_type::difference_type difference_type; typedef value_type& reference; typedef const value_type& const_reference; using _Base_type::allocate; using _Base_type::deallocate; using _Base_type::construct; using _Base_type::destroy; using _Base_type::max_size; private: template using __is_custom_pointer = std::__and_, std::__not_>>; public: template [[__gnu__::__always_inline__]] static constexpr std::__enable_if_t<__is_custom_pointer<_Ptr>::value> construct(_Alloc& __a, _Ptr __p, _Args&&... __args) noexcept(noexcept(_Base_type::construct(__a, std::__to_address(__p), std::forward<_Args>(__args)...))) { _Base_type::construct(__a, std::__to_address(__p), std::forward<_Args>(__args)...); } template [[__gnu__::__always_inline__]] static constexpr std::__enable_if_t<__is_custom_pointer<_Ptr>::value> destroy(_Alloc& __a, _Ptr __p) noexcept(noexcept(_Base_type::destroy(__a, std::__to_address(__p)))) { _Base_type::destroy(__a, std::__to_address(__p)); } [[__gnu__::__always_inline__]] static constexpr _Alloc _S_select_on_copy(const _Alloc& __a) { return _Base_type::select_on_container_copy_construction(__a); } [[__gnu__::__always_inline__]] static constexpr void _S_on_swap(_Alloc& __a, _Alloc& __b) { std::__alloc_on_swap(__a, __b); } [[__gnu__::__always_inline__]] static constexpr bool _S_propagate_on_copy_assign() { return _Base_type::propagate_on_container_copy_assignment::value; } [[__gnu__::__always_inline__]] static constexpr bool _S_propagate_on_move_assign() { return _Base_type::propagate_on_container_move_assignment::value; } [[__gnu__::__always_inline__]] static constexpr bool _S_propagate_on_swap() { return _Base_type::propagate_on_container_swap::value; } [[__gnu__::__always_inline__]] static constexpr bool _S_always_equal() { return _Base_type::is_always_equal::value; } __attribute__((__always_inline__)) static constexpr bool _S_nothrow_move() { return _S_propagate_on_move_assign() || _S_always_equal(); } template struct rebind { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; # 182 "/usr/include/c++/15/ext/alloc_traits.h" 3 }; } # 42 "/usr/include/c++/15/bits/basic_string.h" 2 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 49 "/usr/include/c++/15/bits/basic_string.h" 2 3 # 1 "/usr/include/c++/15/string_view" 1 3 # 46 "/usr/include/c++/15/string_view" 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 47 "/usr/include/c++/15/string_view" 2 3 # 1 "/usr/include/c++/15/bits/functional_hash.h" 1 3 # 40 "/usr/include/c++/15/bits/functional_hash.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 52 "/usr/include/c++/15/bits/functional_hash.h" 3 template struct __hash_base { }; template struct __hash_empty_base { }; template struct hash; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++14-extensions" template constexpr bool __is_hash_enabled_for = false; template constexpr bool __is_hash_enabled_for<_Tp, __void_t()(declval<_Tp>()))>> = true; #pragma GCC diagnostic pop template struct __hash_not_enabled { __hash_not_enabled(__hash_not_enabled&&) = delete; ~__hash_not_enabled() = delete; }; template struct __hash_enum : public __hash_base { size_t operator()(_Tp __val) const noexcept { using __type = typename underlying_type<_Tp>::type; return hash<__type>{}(static_cast<__type>(__val)); } }; template struct hash : __conditional_t<__is_enum(_Tp), __hash_enum<_Tp>, __hash_not_enabled<_Tp>> { }; template struct hash<_Tp*> : public __hash_base { size_t operator()(_Tp* __p) const noexcept { return reinterpret_cast(__p); } }; # 128 "/usr/include/c++/15/bits/functional_hash.h" 3 template<> struct hash : public __hash_base { size_t operator()(bool __val) const noexcept { return static_cast(__val); } }; template<> struct hash : public __hash_base { size_t operator()(char __val) const noexcept { return static_cast(__val); } }; template<> struct hash : public __hash_base { size_t operator()(signed char __val) const noexcept { return static_cast(__val); } }; template<> struct hash : public __hash_base { size_t operator()(unsigned char __val) const noexcept { return static_cast(__val); } }; template<> struct hash : public __hash_base { size_t operator()(wchar_t __val) const noexcept { return static_cast(__val); } }; template<> struct hash : public __hash_base { size_t operator()(char8_t __val) const noexcept { return static_cast(__val); } }; template<> struct hash : public __hash_base { size_t operator()(char16_t __val) const noexcept { return static_cast(__val); } }; template<> struct hash : public __hash_base { size_t operator()(char32_t __val) const noexcept { return static_cast(__val); } }; template<> struct hash : public __hash_base { size_t operator()(short __val) const noexcept { return static_cast(__val); } }; template<> struct hash : public __hash_base { size_t operator()(int __val) const noexcept { return static_cast(__val); } }; template<> struct hash : public __hash_base { size_t operator()(long __val) const noexcept { return static_cast(__val); } }; template<> struct hash : public __hash_base { size_t operator()(long long __val) const noexcept { return static_cast(__val); } }; template<> struct hash : public __hash_base { size_t operator()(unsigned short __val) const noexcept { return static_cast(__val); } }; template<> struct hash : public __hash_base { size_t operator()(unsigned int __val) const noexcept { return static_cast(__val); } }; template<> struct hash : public __hash_base { size_t operator()(unsigned long __val) const noexcept { return static_cast(__val); } }; template<> struct hash : public __hash_base { size_t operator()(unsigned long long __val) const noexcept { return static_cast(__val); } }; __extension__ template<> struct hash<__int128> : public __hash_base { size_t operator()(__int128 __val) const noexcept { return static_cast(__val); } }; __extension__ template<> struct hash<__int128 unsigned> : public __hash_base { size_t operator()(__int128 unsigned __val) const noexcept { return static_cast(__val); } }; # 204 "/usr/include/c++/15/bits/functional_hash.h" 3 struct _Hash_impl { static size_t hash(const void* __ptr, size_t __clength, size_t __seed = static_cast(0xc70f6907UL)) { return _Hash_bytes(__ptr, __clength, __seed); } template static size_t hash(const _Tp& __val) { return hash(&__val, sizeof(__val)); } template static size_t __hash_combine(const _Tp& __val, size_t __hash) { return hash(&__val, sizeof(__val), __hash); } }; struct _Fnv_hash_impl { static size_t hash(const void* __ptr, size_t __clength, size_t __seed = static_cast(2166136261UL)) { return _Fnv_hash_bytes(__ptr, __clength, __seed); } template static size_t hash(const _Tp& __val) { return hash(&__val, sizeof(__val)); } template static size_t __hash_combine(const _Tp& __val, size_t __hash) { return hash(&__val, sizeof(__val), __hash); } }; template<> struct hash : public __hash_base { size_t operator()(float __val) const noexcept { return __val != 0.0f ? std::_Hash_impl::hash(__val) : 0; } }; template<> struct hash : public __hash_base { size_t operator()(double __val) const noexcept { return __val != 0.0 ? std::_Hash_impl::hash(__val) : 0; } }; template<> struct hash : public __hash_base { __attribute__ ((__pure__)) size_t operator()(long double __val) const noexcept; }; template<> struct hash : public __hash_base { size_t operator()(nullptr_t) const noexcept { return 0; } }; # 297 "/usr/include/c++/15/bits/functional_hash.h" 3 template struct __is_fast_hash : public std::true_type { }; template<> struct __is_fast_hash> : public std::false_type { }; } # 53 "/usr/include/c++/15/string_view" 2 3 # 66 "/usr/include/c++/15/string_view" 3 namespace std __attribute__ ((__visibility__ ("default"))) { constexpr size_t __sv_check(size_t __size, size_t __pos, const char* __s) { if (__pos > __size) __throw_out_of_range_fmt(("%s: __pos (which is %zu) > __size " "(which is %zu)") , __s, __pos, __size); return __pos; } constexpr size_t __sv_limit(size_t __size, size_t __pos, size_t __off) noexcept { const bool __testoff = __off < __size - __pos; return __testoff ? __off : __size - __pos; } # 107 "/usr/include/c++/15/string_view" 3 template> class basic_string_view { static_assert(!is_array_v<_CharT>); static_assert(is_trivially_copyable_v<_CharT> && is_trivially_default_constructible_v<_CharT> && is_standard_layout_v<_CharT>); static_assert(is_same_v<_CharT, typename _Traits::char_type>); public: using traits_type = _Traits; using value_type = _CharT; using pointer = value_type*; using const_pointer = const value_type*; using reference = value_type&; using const_reference = const value_type&; using const_iterator = const value_type*; using iterator = const_iterator; using const_reverse_iterator = std::reverse_iterator; using reverse_iterator = const_reverse_iterator; using size_type = size_t; using difference_type = ptrdiff_t; static constexpr size_type npos = size_type(-1); constexpr basic_string_view() noexcept : _M_len{0}, _M_str{nullptr} { } constexpr basic_string_view(const basic_string_view&) noexcept = default; [[__gnu__::__nonnull__]] constexpr basic_string_view(const _CharT* __str) noexcept : _M_len{traits_type::length(__str)}, _M_str{__str} { } constexpr basic_string_view(const _CharT* __str, size_type __len) noexcept : _M_len{__len}, _M_str{__str} { } template _End> requires same_as, _CharT> && (!convertible_to<_End, size_type>) constexpr basic_string_view(_It __first, _End __last) noexcept(noexcept(__last - __first)) : _M_len(__last - __first), _M_str(std::to_address(__first)) { } template> requires (!is_same_v<_DRange, basic_string_view>) && ranges::contiguous_range<_Range> && ranges::sized_range<_Range> && is_same_v, _CharT> && (!is_convertible_v<_Range, const _CharT*>) && (!requires (_DRange& __d) { __d.operator ::std::basic_string_view<_CharT, _Traits>(); }) constexpr explicit basic_string_view(_Range&& __r) noexcept(noexcept(ranges::size(__r)) && noexcept(ranges::data(__r))) : _M_len(ranges::size(__r)), _M_str(ranges::data(__r)) { } basic_string_view(nullptr_t) = delete; constexpr basic_string_view& operator=(const basic_string_view&) noexcept = default; [[nodiscard]] constexpr const_iterator begin() const noexcept { return this->_M_str; } [[nodiscard]] constexpr const_iterator end() const noexcept { return this->_M_str + this->_M_len; } [[nodiscard]] constexpr const_iterator cbegin() const noexcept { return this->_M_str; } [[nodiscard]] constexpr const_iterator cend() const noexcept { return this->_M_str + this->_M_len; } [[nodiscard]] constexpr const_reverse_iterator rbegin() const noexcept { return const_reverse_iterator(this->end()); } [[nodiscard]] constexpr const_reverse_iterator rend() const noexcept { return const_reverse_iterator(this->begin()); } [[nodiscard]] constexpr const_reverse_iterator crbegin() const noexcept { return const_reverse_iterator(this->end()); } [[nodiscard]] constexpr const_reverse_iterator crend() const noexcept { return const_reverse_iterator(this->begin()); } [[nodiscard]] constexpr size_type size() const noexcept { return this->_M_len; } [[nodiscard]] constexpr size_type length() const noexcept { return _M_len; } [[nodiscard]] constexpr size_type max_size() const noexcept { return (npos - sizeof(size_type) - sizeof(void*)) / sizeof(value_type) / 4; } [[nodiscard]] constexpr bool empty() const noexcept { return this->_M_len == 0; } [[nodiscard]] constexpr const_reference operator[](size_type __pos) const noexcept { do { if (std::__is_constant_evaluated() && !bool(__pos < this->_M_len)) std::__glibcxx_assert_fail(); } while (false); return *(this->_M_str + __pos); } [[nodiscard]] constexpr const_reference at(size_type __pos) const { if (__pos >= _M_len) __throw_out_of_range_fmt(("basic_string_view::at: __pos " "(which is %zu) >= this->size() " "(which is %zu)") , __pos, this->size()); return *(this->_M_str + __pos); } [[nodiscard]] constexpr const_reference front() const noexcept { do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) std::__glibcxx_assert_fail(); } while (false); return *this->_M_str; } [[nodiscard]] constexpr const_reference back() const noexcept { do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) std::__glibcxx_assert_fail(); } while (false); return *(this->_M_str + this->_M_len - 1); } [[nodiscard]] constexpr const_pointer data() const noexcept { return this->_M_str; } constexpr void remove_prefix(size_type __n) noexcept { do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) std::__glibcxx_assert_fail(); } while (false); this->_M_str += __n; this->_M_len -= __n; } constexpr void remove_suffix(size_type __n) noexcept { do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) std::__glibcxx_assert_fail(); } while (false); this->_M_len -= __n; } constexpr void swap(basic_string_view& __sv) noexcept { auto __tmp = *this; *this = __sv; __sv = __tmp; } constexpr size_type copy(_CharT* __str, size_type __n, size_type __pos = 0) const { ; __pos = std::__sv_check(size(), __pos, "basic_string_view::copy"); const size_type __rlen = std::min(__n, _M_len - __pos); traits_type::copy(__str, data() + __pos, __rlen); return __rlen; } [[nodiscard]] constexpr basic_string_view substr(size_type __pos = 0, size_type __n = npos) const noexcept(false) { __pos = std::__sv_check(size(), __pos, "basic_string_view::substr"); const size_type __rlen = std::min(__n, _M_len - __pos); return basic_string_view{_M_str + __pos, __rlen}; } [[nodiscard]] constexpr int compare(basic_string_view __str) const noexcept { const size_type __rlen = std::min(this->_M_len, __str._M_len); int __ret = traits_type::compare(this->_M_str, __str._M_str, __rlen); if (__ret == 0) __ret = _S_compare(this->_M_len, __str._M_len); return __ret; } [[nodiscard]] constexpr int compare(size_type __pos1, size_type __n1, basic_string_view __str) const { return this->substr(__pos1, __n1).compare(__str); } [[nodiscard]] constexpr int compare(size_type __pos1, size_type __n1, basic_string_view __str, size_type __pos2, size_type __n2) const { return this->substr(__pos1, __n1).compare(__str.substr(__pos2, __n2)); } [[nodiscard, __gnu__::__nonnull__]] constexpr int compare(const _CharT* __str) const noexcept { return this->compare(basic_string_view{__str}); } [[nodiscard, __gnu__::__nonnull__]] constexpr int compare(size_type __pos1, size_type __n1, const _CharT* __str) const { return this->substr(__pos1, __n1).compare(basic_string_view{__str}); } [[nodiscard]] constexpr int compare(size_type __pos1, size_type __n1, const _CharT* __str, size_type __n2) const noexcept(false) { return this->substr(__pos1, __n1) .compare(basic_string_view(__str, __n2)); } [[nodiscard]] constexpr bool starts_with(basic_string_view __x) const noexcept { return _M_len >= __x._M_len && traits_type::compare(_M_str, __x._M_str, __x._M_len) == 0; } [[nodiscard]] constexpr bool starts_with(_CharT __x) const noexcept { return !this->empty() && traits_type::eq(this->front(), __x); } [[nodiscard, __gnu__::__nonnull__]] constexpr bool starts_with(const _CharT* __x) const noexcept { return this->starts_with(basic_string_view(__x)); } [[nodiscard]] constexpr bool ends_with(basic_string_view __x) const noexcept { const auto __len = this->size(); const auto __xlen = __x.size(); return __len >= __xlen && traits_type::compare(end() - __xlen, __x.data(), __xlen) == 0; } [[nodiscard]] constexpr bool ends_with(_CharT __x) const noexcept { return !this->empty() && traits_type::eq(this->back(), __x); } [[nodiscard, __gnu__::__nonnull__]] constexpr bool ends_with(const _CharT* __x) const noexcept { return this->ends_with(basic_string_view(__x)); } # 434 "/usr/include/c++/15/string_view" 3 [[nodiscard]] constexpr bool contains(basic_string_view __x) const noexcept { return this->find(__x) != npos; } [[nodiscard]] constexpr bool contains(_CharT __x) const noexcept { return this->find(__x) != npos; } [[nodiscard, __gnu__::__nonnull__]] constexpr bool contains(const _CharT* __x) const noexcept { return this->find(__x) != npos; } [[nodiscard]] constexpr size_type find(basic_string_view __str, size_type __pos = 0) const noexcept { return this->find(__str._M_str, __pos, __str._M_len); } [[nodiscard]] constexpr size_type find(_CharT __c, size_type __pos = 0) const noexcept; [[nodiscard]] constexpr size_type find(const _CharT* __str, size_type __pos, size_type __n) const noexcept; [[nodiscard, __gnu__::__nonnull__]] constexpr size_type find(const _CharT* __str, size_type __pos = 0) const noexcept { return this->find(__str, __pos, traits_type::length(__str)); } [[nodiscard]] constexpr size_type rfind(basic_string_view __str, size_type __pos = npos) const noexcept { return this->rfind(__str._M_str, __pos, __str._M_len); } [[nodiscard]] constexpr size_type rfind(_CharT __c, size_type __pos = npos) const noexcept; [[nodiscard]] constexpr size_type rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept; [[nodiscard, __gnu__::__nonnull__]] constexpr size_type rfind(const _CharT* __str, size_type __pos = npos) const noexcept { return this->rfind(__str, __pos, traits_type::length(__str)); } [[nodiscard]] constexpr size_type find_first_of(basic_string_view __str, size_type __pos = 0) const noexcept { return this->find_first_of(__str._M_str, __pos, __str._M_len); } [[nodiscard]] constexpr size_type find_first_of(_CharT __c, size_type __pos = 0) const noexcept { return this->find(__c, __pos); } [[nodiscard]] constexpr size_type find_first_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept; [[nodiscard, __gnu__::__nonnull__]] constexpr size_type find_first_of(const _CharT* __str, size_type __pos = 0) const noexcept { return this->find_first_of(__str, __pos, traits_type::length(__str)); } [[nodiscard]] constexpr size_type find_last_of(basic_string_view __str, size_type __pos = npos) const noexcept { return this->find_last_of(__str._M_str, __pos, __str._M_len); } [[nodiscard]] constexpr size_type find_last_of(_CharT __c, size_type __pos=npos) const noexcept { return this->rfind(__c, __pos); } [[nodiscard]] constexpr size_type find_last_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept; [[nodiscard, __gnu__::__nonnull__]] constexpr size_type find_last_of(const _CharT* __str, size_type __pos = npos) const noexcept { return this->find_last_of(__str, __pos, traits_type::length(__str)); } [[nodiscard]] constexpr size_type find_first_not_of(basic_string_view __str, size_type __pos = 0) const noexcept { return this->find_first_not_of(__str._M_str, __pos, __str._M_len); } [[nodiscard]] constexpr size_type find_first_not_of(_CharT __c, size_type __pos = 0) const noexcept; [[nodiscard]] constexpr size_type find_first_not_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept; [[nodiscard, __gnu__::__nonnull__]] constexpr size_type find_first_not_of(const _CharT* __str, size_type __pos = 0) const noexcept { return this->find_first_not_of(__str, __pos, traits_type::length(__str)); } [[nodiscard]] constexpr size_type find_last_not_of(basic_string_view __str, size_type __pos = npos) const noexcept { return this->find_last_not_of(__str._M_str, __pos, __str._M_len); } [[nodiscard]] constexpr size_type find_last_not_of(_CharT __c, size_type __pos = npos) const noexcept; [[nodiscard]] constexpr size_type find_last_not_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept; [[nodiscard, __gnu__::__nonnull__]] constexpr size_type find_last_not_of(const _CharT* __str, size_type __pos = npos) const noexcept { return this->find_last_not_of(__str, __pos, traits_type::length(__str)); } private: static constexpr int _S_compare(size_type __n1, size_type __n2) noexcept { using __limits = __gnu_cxx::__int_traits; const difference_type __diff = __n1 - __n2; if (__diff > __limits::__max) return __limits::__max; if (__diff < __limits::__min) return __limits::__min; return static_cast(__diff); } size_t _M_len; const _CharT* _M_str; }; template _End> basic_string_view(_It, _End) -> basic_string_view>; template basic_string_view(_Range&&) -> basic_string_view>; # 613 "/usr/include/c++/15/string_view" 3 template [[nodiscard]] constexpr bool operator==(basic_string_view<_CharT, _Traits> __x, type_identity_t> __y) noexcept { return __x.size() == __y.size() && __x.compare(__y) == 0; } template [[nodiscard]] constexpr auto operator<=>(basic_string_view<_CharT, _Traits> __x, __type_identity_t> __y) noexcept -> decltype(__detail::__char_traits_cmp_cat<_Traits>(0)) { return __detail::__char_traits_cmp_cat<_Traits>(__x.compare(__y)); } # 765 "/usr/include/c++/15/string_view" 3 template inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, basic_string_view<_CharT,_Traits> __str) { return __ostream_insert(__os, __str.data(), __str.size()); } using string_view = basic_string_view; using wstring_view = basic_string_view; using u8string_view = basic_string_view; using u16string_view = basic_string_view; using u32string_view = basic_string_view; template struct hash; template<> struct hash : public __hash_base { [[nodiscard]] size_t operator()(const string_view& __str) const noexcept { return std::_Hash_impl::hash(__str.data(), __str.length()); } }; template<> struct __is_fast_hash> : std::false_type { }; template<> struct hash : public __hash_base { [[nodiscard]] size_t operator()(const wstring_view& __s) const noexcept { return std::_Hash_impl::hash(__s.data(), __s.length() * sizeof(wchar_t)); } }; template<> struct __is_fast_hash> : std::false_type { }; template<> struct hash : public __hash_base { [[nodiscard]] size_t operator()(const u8string_view& __str) const noexcept { return std::_Hash_impl::hash(__str.data(), __str.length()); } }; template<> struct __is_fast_hash> : std::false_type { }; template<> struct hash : public __hash_base { [[nodiscard]] size_t operator()(const u16string_view& __s) const noexcept { return std::_Hash_impl::hash(__s.data(), __s.length() * sizeof(char16_t)); } }; template<> struct __is_fast_hash> : std::false_type { }; template<> struct hash : public __hash_base { [[nodiscard]] size_t operator()(const u32string_view& __s) const noexcept { return std::_Hash_impl::hash(__s.data(), __s.length() * sizeof(char32_t)); } }; template<> struct __is_fast_hash> : std::false_type { }; inline namespace literals { inline namespace string_view_literals { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wliteral-suffix" inline constexpr basic_string_view operator""sv(const char* __str, size_t __len) noexcept { return basic_string_view{__str, __len}; } inline constexpr basic_string_view operator""sv(const wchar_t* __str, size_t __len) noexcept { return basic_string_view{__str, __len}; } inline constexpr basic_string_view operator""sv(const char8_t* __str, size_t __len) noexcept { return basic_string_view{__str, __len}; } inline constexpr basic_string_view operator""sv(const char16_t* __str, size_t __len) noexcept { return basic_string_view{__str, __len}; } inline constexpr basic_string_view operator""sv(const char32_t* __str, size_t __len) noexcept { return basic_string_view{__str, __len}; } #pragma GCC diagnostic pop } } namespace ranges { template inline constexpr bool enable_borrowed_range> = true; template inline constexpr bool enable_view> = true; } } # 1 "/usr/include/c++/15/bits/string_view.tcc" 1 3 # 43 "/usr/include/c++/15/bits/string_view.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept { ; if (__n == 0) return __pos <= _M_len ? __pos : npos; if (__pos >= _M_len) return npos; const _CharT __elem0 = __str[0]; const _CharT* __first = _M_str + __pos; const _CharT* const __last = _M_str + _M_len; size_type __len = _M_len - __pos; while (__len >= __n) { __first = traits_type::find(__first, __len - __n + 1, __elem0); if (!__first) return npos; if (traits_type::compare(__first, __str, __n) == 0) return __first - _M_str; __len = __last - ++__first; } return npos; } template constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find(_CharT __c, size_type __pos) const noexcept { size_type __ret = npos; if (__pos < this->_M_len) { const size_type __n = this->_M_len - __pos; const _CharT* __p = traits_type::find(this->_M_str + __pos, __n, __c); if (__p) __ret = __p - this->_M_str; } return __ret; } template constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept { ; if (__n <= this->_M_len) { __pos = std::min(size_type(this->_M_len - __n), __pos); do { if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) return __pos; } while (__pos-- > 0); } return npos; } template constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: rfind(_CharT __c, size_type __pos) const noexcept { size_type __size = this->_M_len; if (__size > 0) { if (--__size > __pos) __size = __pos; for (++__size; __size-- > 0; ) if (traits_type::eq(this->_M_str[__size], __c)) return __size; } return npos; } template constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find_first_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept { ; for (; __n && __pos < this->_M_len; ++__pos) { const _CharT* __p = traits_type::find(__str, __n, this->_M_str[__pos]); if (__p) return __pos; } return npos; } template constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find_last_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept { ; size_type __size = this->size(); if (__size && __n) { if (--__size > __pos) __size = __pos; do { if (traits_type::find(__str, __n, this->_M_str[__size])) return __size; } while (__size-- != 0); } return npos; } template constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find_first_not_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept { ; for (; __pos < this->_M_len; ++__pos) if (!traits_type::find(__str, __n, this->_M_str[__pos])) return __pos; return npos; } template constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find_first_not_of(_CharT __c, size_type __pos) const noexcept { for (; __pos < this->_M_len; ++__pos) if (!traits_type::eq(this->_M_str[__pos], __c)) return __pos; return npos; } template constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find_last_not_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept { ; size_type __size = this->_M_len; if (__size) { if (--__size > __pos) __size = __pos; do { if (!traits_type::find(__str, __n, this->_M_str[__size])) return __size; } while (__size--); } return npos; } template constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find_last_not_of(_CharT __c, size_type __pos) const noexcept { size_type __size = this->_M_len; if (__size) { if (--__size > __pos) __size = __pos; do { if (!traits_type::eq(this->_M_str[__size], __c)) return __size; } while (__size--); } return npos; } } # 912 "/usr/include/c++/15/string_view" 2 3 # 52 "/usr/include/c++/15/bits/basic_string.h" 2 3 # 1 "/usr/include/c++/15/bits/ranges_algobase.h" 1 3 # 44 "/usr/include/c++/15/bits/ranges_algobase.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace ranges { namespace __detail { template constexpr inline bool __is_normal_iterator = false; template constexpr inline bool __is_normal_iterator<__gnu_cxx::__normal_iterator<_Iterator, _Container>> = true; template constexpr inline bool __is_reverse_iterator = false; template constexpr inline bool __is_reverse_iterator> = true; template constexpr inline bool __is_move_iterator = false; template constexpr inline bool __is_move_iterator> = true; } template struct out_value_result { [[no_unique_address]] _Out out; [[no_unique_address]] _Tp value; template requires convertible_to && convertible_to constexpr operator out_value_result<_Out2, _Tp2>() const & { return {out, value}; } template requires convertible_to<_Out, _Out2> && convertible_to<_Tp, _Tp2> constexpr operator out_value_result<_Out2, _Tp2>() && { return {std::move(out), std::move(value)}; } }; struct __equal_fn { template _Sent1, input_iterator _Iter2, sentinel_for<_Iter2> _Sent2, typename _Pred = ranges::equal_to, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_comparable<_Iter1, _Iter2, _Pred, _Proj1, _Proj2> constexpr bool operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { if constexpr (__detail::__is_normal_iterator<_Iter1> && same_as<_Iter1, _Sent1>) return (*this)(__first1.base(), __last1.base(), std::move(__first2), std::move(__last2), std::move(__pred), std::move(__proj1), std::move(__proj2)); else if constexpr (__detail::__is_normal_iterator<_Iter2> && same_as<_Iter2, _Sent2>) return (*this)(std::move(__first1), std::move(__last1), __first2.base(), __last2.base(), std::move(__pred), std::move(__proj1), std::move(__proj2)); else if constexpr (sized_sentinel_for<_Sent1, _Iter1> && sized_sentinel_for<_Sent2, _Iter2>) { auto __d1 = ranges::distance(__first1, __last1); auto __d2 = ranges::distance(__first2, __last2); if (__d1 != __d2) return false; using _ValueType1 = iter_value_t<_Iter1>; constexpr bool __use_memcmp = ((is_integral_v<_ValueType1> || is_pointer_v<_ValueType1>) && __memcmpable<_Iter1, _Iter2>::__value && is_same_v<_Pred, ranges::equal_to> && is_same_v<_Proj1, identity> && is_same_v<_Proj2, identity>); if constexpr (__use_memcmp) { if (const size_t __len = (__last1 - __first1)) return !std::__memcmp(__first1, __first2, __len); return true; } else { for (; __first1 != __last1; ++__first1, (void)++__first2) if (!(bool)std::__invoke(__pred, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2))) return false; return true; } } else { for (; __first1 != __last1 && __first2 != __last2; ++__first1, (void)++__first2) if (!(bool)std::__invoke(__pred, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2))) return false; return __first1 == __last1 && __first2 == __last2; } } template requires indirectly_comparable, iterator_t<_Range2>, _Pred, _Proj1, _Proj2> constexpr bool operator()(_Range1&& __r1, _Range2&& __r2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { if constexpr (sized_range<_Range1>) if constexpr (sized_range<_Range2>) if (ranges::distance(__r1) != ranges::distance(__r2)) return false; return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__pred), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __equal_fn equal{}; namespace __detail { template [[__gnu__::__always_inline__]] constexpr void __assign_one(_OutIter& __out, _InIter& __in) { if constexpr (_IsMove) *__out = ranges::iter_move(__in); else *__out = *__in; } } template struct in_out_result { [[no_unique_address]] _Iter in; [[no_unique_address]] _Out out; template requires convertible_to && convertible_to constexpr operator in_out_result<_Iter2, _Out2>() const & { return {in, out}; } template requires convertible_to<_Iter, _Iter2> && convertible_to<_Out, _Out2> constexpr operator in_out_result<_Iter2, _Out2>() && { return {std::move(in), std::move(out)}; } }; template using copy_result = in_out_result<_Iter, _Out>; template using move_result = in_out_result<_Iter, _Out>; template using move_backward_result = in_out_result<_Iter1, _Iter2>; template using copy_backward_result = in_out_result<_Iter1, _Iter2>; template _Sent, bidirectional_iterator _Out> requires (_IsMove ? indirectly_movable<_Iter, _Out> : indirectly_copyable<_Iter, _Out>) constexpr __conditional_t<_IsMove, move_backward_result<_Iter, _Out>, copy_backward_result<_Iter, _Out>> __copy_or_move_backward(_Iter __first, _Sent __last, _Out __result); template _Sent, weakly_incrementable _Out> requires (_IsMove ? indirectly_movable<_Iter, _Out> : indirectly_copyable<_Iter, _Out>) constexpr __conditional_t<_IsMove, move_result<_Iter, _Out>, copy_result<_Iter, _Out>> __copy_or_move(_Iter __first, _Sent __last, _Out __result) { using __detail::__is_move_iterator; using __detail::__is_reverse_iterator; using __detail::__is_normal_iterator; if constexpr (__is_move_iterator<_Iter> && same_as<_Iter, _Sent>) { auto [__in, __out] = ranges::__copy_or_move(std::move(__first).base(), std::move(__last).base(), std::move(__result)); return {move_iterator{std::move(__in)}, std::move(__out)}; } else if constexpr (__is_reverse_iterator<_Iter> && same_as<_Iter, _Sent> && __is_reverse_iterator<_Out>) { auto [__in,__out] = ranges::__copy_or_move_backward<_IsMove>(std::move(__last).base(), std::move(__first).base(), std::move(__result).base()); return {reverse_iterator{std::move(__in)}, reverse_iterator{std::move(__out)}}; } else if constexpr (__is_normal_iterator<_Iter> && same_as<_Iter, _Sent>) { auto [__in,__out] = ranges::__copy_or_move<_IsMove>(__first.base(), __last.base(), std::move(__result)); return {decltype(__first){__in}, std::move(__out)}; } else if constexpr (__is_normal_iterator<_Out>) { auto [__in,__out] = ranges::__copy_or_move<_IsMove>(std::move(__first), __last, __result.base()); return {std::move(__in), decltype(__result){__out}}; } else if constexpr (sized_sentinel_for<_Sent, _Iter>) { if (!std::__is_constant_evaluated()) { if constexpr (__memcpyable<_Out, _Iter>::__value) { using _ValueTypeI = iter_value_t<_Iter>; auto __num = __last - __first; if (__num > 1) [[likely]] __builtin_memmove(__result, __first, sizeof(_ValueTypeI) * __num); else if (__num == 1) __detail::__assign_one<_IsMove>(__result, __first); return {__first + __num, __result + __num}; } } for (auto __n = __last - __first; __n > 0; --__n) { __detail::__assign_one<_IsMove>(__result, __first); ++__first; ++__result; } return {std::move(__first), std::move(__result)}; } else { while (__first != __last) { __detail::__assign_one<_IsMove>(__result, __first); ++__first; ++__result; } return {std::move(__first), std::move(__result)}; } } struct __copy_fn { template _Sent, weakly_incrementable _Out> requires indirectly_copyable<_Iter, _Out> constexpr copy_result<_Iter, _Out> operator()(_Iter __first, _Sent __last, _Out __result) const { return ranges::__copy_or_move(std::move(__first), std::move(__last), std::move(__result)); } template requires indirectly_copyable, _Out> constexpr copy_result, _Out> operator()(_Range&& __r, _Out __result) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result)); } }; inline constexpr __copy_fn copy{}; struct __move_fn { template _Sent, weakly_incrementable _Out> requires indirectly_movable<_Iter, _Out> constexpr move_result<_Iter, _Out> operator()(_Iter __first, _Sent __last, _Out __result) const { return ranges::__copy_or_move(std::move(__first), std::move(__last), std::move(__result)); } template requires indirectly_movable, _Out> constexpr move_result, _Out> operator()(_Range&& __r, _Out __result) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result)); } }; inline constexpr __move_fn move{}; template _Sent, bidirectional_iterator _Out> requires (_IsMove ? indirectly_movable<_Iter, _Out> : indirectly_copyable<_Iter, _Out>) constexpr __conditional_t<_IsMove, move_backward_result<_Iter, _Out>, copy_backward_result<_Iter, _Out>> __copy_or_move_backward(_Iter __first, _Sent __last, _Out __result) { using __detail::__is_reverse_iterator; using __detail::__is_normal_iterator; if constexpr (__is_reverse_iterator<_Iter> && same_as<_Iter, _Sent> && __is_reverse_iterator<_Out>) { auto [__in,__out] = ranges::__copy_or_move<_IsMove>(std::move(__last).base(), std::move(__first).base(), std::move(__result).base()); return {reverse_iterator{std::move(__in)}, reverse_iterator{std::move(__out)}}; } else if constexpr (__is_normal_iterator<_Iter> && same_as<_Iter, _Sent>) { auto [__in,__out] = ranges::__copy_or_move_backward<_IsMove>(__first.base(), __last.base(), std::move(__result)); return {decltype(__first){__in}, std::move(__out)}; } else if constexpr (__is_normal_iterator<_Out>) { auto [__in,__out] = ranges::__copy_or_move_backward<_IsMove>(std::move(__first), std::move(__last), __result.base()); return {std::move(__in), decltype(__result){__out}}; } else if constexpr (sized_sentinel_for<_Sent, _Iter>) { if (!std::__is_constant_evaluated()) { if constexpr (__memcpyable<_Out, _Iter>::__value) { using _ValueTypeI = iter_value_t<_Iter>; auto __num = __last - __first; __result -= __num; if (__num > 1) [[likely]] __builtin_memmove(__result, __first, sizeof(_ValueTypeI) * __num); else if (__num == 1) __detail::__assign_one<_IsMove>(__result, __first); return {__first + __num, __result}; } } auto __lasti = ranges::next(__first, __last); auto __tail = __lasti; for (auto __n = __last - __first; __n > 0; --__n) { --__tail; --__result; __detail::__assign_one<_IsMove>(__result, __tail); } return {std::move(__lasti), std::move(__result)}; } else { auto __lasti = ranges::next(__first, __last); auto __tail = __lasti; while (__first != __tail) { --__tail; --__result; __detail::__assign_one<_IsMove>(__result, __tail); } return {std::move(__lasti), std::move(__result)}; } } struct __copy_backward_fn { template _Sent1, bidirectional_iterator _Iter2> requires indirectly_copyable<_Iter1, _Iter2> constexpr copy_backward_result<_Iter1, _Iter2> operator()(_Iter1 __first, _Sent1 __last, _Iter2 __result) const { return ranges::__copy_or_move_backward(std::move(__first), std::move(__last), std::move(__result)); } template requires indirectly_copyable, _Iter> constexpr copy_backward_result, _Iter> operator()(_Range&& __r, _Iter __result) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result)); } }; inline constexpr __copy_backward_fn copy_backward{}; struct __move_backward_fn { template _Sent1, bidirectional_iterator _Iter2> requires indirectly_movable<_Iter1, _Iter2> constexpr move_backward_result<_Iter1, _Iter2> operator()(_Iter1 __first, _Sent1 __last, _Iter2 __result) const { return ranges::__copy_or_move_backward(std::move(__first), std::move(__last), std::move(__result)); } template requires indirectly_movable, _Iter> constexpr move_backward_result, _Iter> operator()(_Range&& __r, _Iter __result) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result)); } }; inline constexpr __move_backward_fn move_backward{}; template using copy_n_result = in_out_result<_Iter, _Out>; struct __copy_n_fn { template requires indirectly_copyable<_Iter, _Out> constexpr copy_n_result<_Iter, _Out> operator()(_Iter __first, iter_difference_t<_Iter> __n, _Out __result) const { if constexpr (random_access_iterator<_Iter>) { if (__n > 0) return ranges::copy(__first, __first + __n, std::move(__result)); } else { for (; __n > 0; --__n, (void)++__result, (void)++__first) *__result = *__first; } return {std::move(__first), std::move(__result)}; } }; inline constexpr __copy_n_fn copy_n{}; struct __fill_n_fn { template requires output_iterator<_Out, const _Tp&> constexpr _Out operator()(_Out __first, iter_difference_t<_Out> __n, const _Tp& __value) const { if (__n <= 0) return __first; if constexpr (is_scalar_v<_Tp>) { if constexpr (is_pointer_v<_Out> && __is_byte>::__value && integral<_Tp>) { if (!std::__is_constant_evaluated()) { __builtin_memset(__first, static_cast(__value), __n); return __first + __n; } } const auto __tmp = __value; for (; __n > 0; --__n, (void)++__first) *__first = __tmp; return __first; } else { for (; __n > 0; --__n, (void)++__first) *__first = __value; return __first; } } }; inline constexpr __fill_n_fn fill_n{}; struct __fill_fn { template _Sent, typename _Tp > requires output_iterator<_Out, const _Tp&> constexpr _Out operator()(_Out __first, _Sent __last, const _Tp& __value) const { if constexpr (sized_sentinel_for<_Sent, _Out>) { const auto __len = __last - __first; return ranges::fill_n(std::move(__first), __len, __value); } else if constexpr (is_scalar_v<_Tp>) { const auto __tmp = __value; for (; __first != __last; ++__first) *__first = __tmp; return __first; } else { for (; __first != __last; ++__first) *__first = __value; return __first; } } template requires output_range<_Range, const _Tp&> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, const _Tp& __value) const { return (*this)(ranges::begin(__r), ranges::end(__r), __value); } }; inline constexpr __fill_fn fill{}; } } # 56 "/usr/include/c++/15/bits/basic_string.h" 2 3 # 68 "/usr/include/c++/15/bits/basic_string.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __cxx11 { # 93 "/usr/include/c++/15/bits/basic_string.h" 3 template class basic_string { static_assert(is_trivially_copyable_v<_CharT> && is_trivially_default_constructible_v<_CharT> && is_standard_layout_v<_CharT>); static_assert(is_same_v<_CharT, typename _Traits::char_type>); static_assert(is_same_v<_CharT, typename _Alloc::value_type>); using _Char_alloc_type = _Alloc; typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; public: typedef _Traits traits_type; typedef typename _Traits::char_type value_type; typedef _Char_alloc_type allocator_type; typedef typename _Alloc_traits::size_type size_type; typedef typename _Alloc_traits::difference_type difference_type; typedef typename _Alloc_traits::reference reference; typedef typename _Alloc_traits::const_reference const_reference; typedef typename _Alloc_traits::pointer pointer; typedef typename _Alloc_traits::const_pointer const_pointer; typedef __gnu_cxx::__normal_iterator iterator; typedef __gnu_cxx::__normal_iterator const_iterator; typedef std::reverse_iterator const_reverse_iterator; typedef std::reverse_iterator reverse_iterator; static const size_type npos = static_cast(-1); protected: typedef const_iterator __const_iterator; private: static constexpr pointer _S_allocate(_Char_alloc_type& __a, size_type __n) { pointer __p = _Alloc_traits::allocate(__a, __n); if constexpr (!is_same_v<_Traits, char_traits<_CharT>>) if (std::__is_constant_evaluated()) for (size_type __i = 0; __i < __n; ++__i) std::construct_at(__builtin_addressof(__p[__i])); return __p; } typedef basic_string_view<_CharT, _Traits> __sv_type; template using _If_sv = enable_if_t< __and_, __not_>, __not_>>::value, _Res>; constexpr static __sv_type _S_to_string_view(__sv_type __svt) noexcept { return __svt; } struct __sv_wrapper { constexpr explicit __sv_wrapper(__sv_type __sv) noexcept : _M_sv(__sv) { } __sv_type _M_sv; }; constexpr explicit basic_string(__sv_wrapper __svw, const _Alloc& __a) : basic_string(__svw._M_sv.data(), __svw._M_sv.size(), __a) { } struct _Alloc_hider : allocator_type { constexpr _Alloc_hider(pointer __dat, const _Alloc& __a) : allocator_type(__a), _M_p(__dat) { } constexpr _Alloc_hider(pointer __dat, _Alloc&& __a = _Alloc()) : allocator_type(std::move(__a)), _M_p(__dat) { } pointer _M_p; }; _Alloc_hider _M_dataplus; size_type _M_string_length; enum { _S_local_capacity = 15 / sizeof(_CharT) }; union { _CharT _M_local_buf[_S_local_capacity + 1]; size_type _M_allocated_capacity; }; constexpr void _M_data(pointer __p) { _M_dataplus._M_p = __p; } constexpr void _M_length(size_type __length) { _M_string_length = __length; } constexpr pointer _M_data() const { return _M_dataplus._M_p; } constexpr pointer _M_local_data() { return std::pointer_traits::pointer_to(*_M_local_buf); } constexpr const_pointer _M_local_data() const { return std::pointer_traits::pointer_to(*_M_local_buf); } constexpr void _M_capacity(size_type __capacity) { _M_allocated_capacity = __capacity; } constexpr void _M_set_length(size_type __n) { _M_length(__n); traits_type::assign(_M_data()[__n], _CharT()); } constexpr bool _M_is_local() const { if (_M_data() == _M_local_data()) { if (_M_string_length > _S_local_capacity) __builtin_unreachable(); return true; } return false; } constexpr pointer _M_create(size_type&, size_type); constexpr void _M_dispose() { if (!_M_is_local()) _M_destroy(_M_allocated_capacity); } constexpr void _M_destroy(size_type __size) throw() { _Alloc_traits::deallocate(_M_get_allocator(), _M_data(), __size + 1); } # 332 "/usr/include/c++/15/bits/basic_string.h" 3 template constexpr void _M_construct(_InIterator __beg, _InIterator __end, std::input_iterator_tag); template constexpr void _M_construct(_FwdIterator __beg, _FwdIterator __end, std::forward_iterator_tag); constexpr void _M_construct(size_type __req, _CharT __c); template constexpr void _M_construct(const _CharT *__c, size_type __n); constexpr allocator_type& _M_get_allocator() { return _M_dataplus; } constexpr const allocator_type& _M_get_allocator() const { return _M_dataplus; } __attribute__((__always_inline__)) constexpr void _M_init_local_buf() noexcept { if (std::is_constant_evaluated()) for (size_type __i = 0; __i <= _S_local_capacity; ++__i) _M_local_buf[__i] = _CharT(); } __attribute__((__always_inline__)) constexpr pointer _M_use_local_data() noexcept { _M_init_local_buf(); return _M_local_data(); } private: # 407 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr size_type _M_check(size_type __pos, const char* __s) const { if (__pos > this->size()) __throw_out_of_range_fmt(("%s: __pos (which is %zu) > " "this->size() (which is %zu)") , __s, __pos, this->size()); return __pos; } constexpr void _M_check_length(size_type __n1, size_type __n2, const char* __s) const { if (this->max_size() - (this->size() - __n1) < __n2) __throw_length_error((__s)); } constexpr size_type _M_limit(size_type __pos, size_type __off) const noexcept { const bool __testoff = __off < this->size() - __pos; return __testoff ? __off : this->size() - __pos; } bool _M_disjunct(const _CharT* __s) const noexcept { return (less()(__s, _M_data()) || less()(_M_data() + this->size(), __s)); } constexpr static void _S_copy(_CharT* __d, const _CharT* __s, size_type __n) { if (__n == 1) traits_type::assign(*__d, *__s); else traits_type::copy(__d, __s, __n); } constexpr static void _S_move(_CharT* __d, const _CharT* __s, size_type __n) { if (__n == 1) traits_type::assign(*__d, *__s); else traits_type::move(__d, __s, __n); } constexpr static void _S_assign(_CharT* __d, size_type __n, _CharT __c) { if (__n == 1) traits_type::assign(*__d, __c); else traits_type::assign(__d, __n, __c); } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++17-extensions" template constexpr static void _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2) { using _IterBase = decltype(std::__niter_base(__k1)); if constexpr (__or_, is_same<_IterBase, const _CharT*>>::value) _S_copy(__p, std::__niter_base(__k1), __k2 - __k1); else if constexpr (requires { requires contiguous_iterator<_Iterator>; { std::to_address(__k1) } -> convertible_to; }) { const auto __d = __k2 - __k1; (void) (__k1 + __d); _S_copy(__p, std::to_address(__k1), static_cast(__d)); } else for (; __k1 != __k2; ++__k1, (void)++__p) traits_type::assign(*__p, static_cast<_CharT>(*__k1)); } #pragma GCC diagnostic pop # 529 "/usr/include/c++/15/bits/basic_string.h" 3 template static constexpr void _S_copy_range(pointer __p, _Rg&& __rg, size_type __n) { if constexpr (requires { requires ranges::contiguous_range<_Rg>; { ranges::data(std::forward<_Rg>(__rg)) } -> convertible_to; }) _S_copy(__p, ranges::data(std::forward<_Rg>(__rg)), __n); else { auto __first = ranges::begin(__rg); const auto __last = ranges::end(__rg); for (; __first != __last; ++__first) traits_type::assign(*__p++, static_cast<_CharT>(*__first)); } } constexpr static int _S_compare(size_type __n1, size_type __n2) noexcept { const difference_type __d = difference_type(__n1 - __n2); if (__d > __gnu_cxx::__numeric_traits::__max) return __gnu_cxx::__numeric_traits::__max; else if (__d < __gnu_cxx::__numeric_traits::__min) return __gnu_cxx::__numeric_traits::__min; else return int(__d); } constexpr void _M_assign(const basic_string&); constexpr void _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, size_type __len2); constexpr void _M_erase(size_type __pos, size_type __n); public: constexpr basic_string() noexcept(is_nothrow_default_constructible<_Alloc>::value) requires is_default_constructible_v<_Alloc> : _M_dataplus(_M_local_data()) { _M_init_local_buf(); _M_set_length(0); } constexpr explicit basic_string(const _Alloc& __a) noexcept : _M_dataplus(_M_local_data(), __a) { _M_init_local_buf(); _M_set_length(0); } constexpr basic_string(const basic_string& __str) : _M_dataplus(_M_local_data(), _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) { _M_construct(__str._M_data(), __str.length()); } # 628 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string(const basic_string& __str, size_type __pos, const _Alloc& __a = _Alloc()) : _M_dataplus(_M_local_data(), __a) { const _CharT* __start = __str._M_data() + __str._M_check(__pos, "basic_string::basic_string"); _M_construct(__start, __start + __str._M_limit(__pos, npos), std::forward_iterator_tag()); } constexpr basic_string(const basic_string& __str, size_type __pos, size_type __n) : _M_dataplus(_M_local_data()) { const _CharT* __start = __str._M_data() + __str._M_check(__pos, "basic_string::basic_string"); _M_construct(__start, __start + __str._M_limit(__pos, __n), std::forward_iterator_tag()); } # 663 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string(const basic_string& __str, size_type __pos, size_type __n, const _Alloc& __a) : _M_dataplus(_M_local_data(), __a) { const _CharT* __start = __str._M_data() + __str._M_check(__pos, "string::string"); _M_construct(__start, __start + __str._M_limit(__pos, __n), std::forward_iterator_tag()); } # 683 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string(const _CharT* __s, size_type __n, const _Alloc& __a = _Alloc()) : _M_dataplus(_M_local_data(), __a) { if (__s == 0 && __n > 0) std::__throw_logic_error(("basic_string: " "construction from null is not valid") ); _M_construct(__s, __s + __n, std::forward_iterator_tag()); } # 703 "/usr/include/c++/15/bits/basic_string.h" 3 template> constexpr basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()) : _M_dataplus(_M_local_data(), __a) { if (__s == 0) std::__throw_logic_error(("basic_string: " "construction from null is not valid") ); const _CharT* __end = __s + traits_type::length(__s); _M_construct(__s, __end, forward_iterator_tag()); } # 726 "/usr/include/c++/15/bits/basic_string.h" 3 template> constexpr basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc()) : _M_dataplus(_M_local_data(), __a) { _M_construct(__n, __c); } # 741 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string(basic_string&& __str) noexcept : _M_dataplus(_M_local_data(), std::move(__str._M_get_allocator())) { if (__str._M_is_local()) { _M_init_local_buf(); traits_type::copy(_M_local_buf, __str._M_local_buf, __str.length() + 1); } else { _M_data(__str._M_data()); _M_capacity(__str._M_allocated_capacity); } _M_length(__str.length()); __str._M_data(__str._M_use_local_data()); __str._M_set_length(0); } template<__detail::__container_compatible_range<_CharT> _Rg> constexpr basic_string(from_range_t, _Rg&& __rg, const _Alloc& __a = _Alloc()) : basic_string(__a) { if constexpr (ranges::forward_range<_Rg> || ranges::sized_range<_Rg>) { const auto __n = static_cast(ranges::distance(__rg)); reserve(__n); _S_copy_range(_M_data(), std::forward<_Rg>(__rg), __n); _M_set_length(__n); } else { auto __first = ranges::begin(__rg); const auto __last = ranges::end(__rg); for (; __first != __last; ++__first) push_back(*__first); } } constexpr basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc()) : _M_dataplus(_M_local_data(), __a) { _M_construct(__l.begin(), __l.end(), std::forward_iterator_tag()); } constexpr basic_string(const basic_string& __str, const _Alloc& __a) : _M_dataplus(_M_local_data(), __a) { _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); } constexpr basic_string(basic_string&& __str, const _Alloc& __a) noexcept(_Alloc_traits::_S_always_equal()) : _M_dataplus(_M_local_data(), __a) { if (__str._M_is_local()) { _M_init_local_buf(); traits_type::copy(_M_local_buf, __str._M_local_buf, __str.length() + 1); _M_length(__str.length()); __str._M_set_length(0); } else if (_Alloc_traits::_S_always_equal() || __str.get_allocator() == __a) { _M_data(__str._M_data()); _M_length(__str.length()); _M_capacity(__str._M_allocated_capacity); __str._M_data(__str._M_use_local_data()); __str._M_set_length(0); } else _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); } basic_string(nullptr_t) = delete; basic_string& operator=(nullptr_t) = delete; # 846 "/usr/include/c++/15/bits/basic_string.h" 3 template> constexpr basic_string(_InputIterator __beg, _InputIterator __end, const _Alloc& __a = _Alloc()) : _M_dataplus(_M_local_data(), __a), _M_string_length(0) { _M_construct(__beg, __end, std::__iterator_category(__beg)); } # 872 "/usr/include/c++/15/bits/basic_string.h" 3 template>> constexpr basic_string(const _Tp& __t, size_type __pos, size_type __n, const _Alloc& __a = _Alloc()) : basic_string(_S_to_string_view(__t).substr(__pos, __n), __a) { } template> constexpr explicit basic_string(const _Tp& __t, const _Alloc& __a = _Alloc()) : basic_string(__sv_wrapper(_S_to_string_view(__t)), __a) { } constexpr ~basic_string() { _M_dispose(); } constexpr basic_string& operator=(const basic_string& __str) { return this->assign(__str); } constexpr basic_string& operator=(const _CharT* __s) { return this->assign(__s); } # 925 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& operator=(_CharT __c) { this->assign(1, __c); return *this; } # 943 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& operator=(basic_string&& __str) noexcept(_Alloc_traits::_S_nothrow_move()) { const bool __equal_allocs = _Alloc_traits::_S_always_equal() || _M_get_allocator() == __str._M_get_allocator(); if (!_M_is_local() && _Alloc_traits::_S_propagate_on_move_assign() && !__equal_allocs) { _M_destroy(_M_allocated_capacity); _M_data(_M_local_data()); _M_set_length(0); } std::__alloc_on_move(_M_get_allocator(), __str._M_get_allocator()); if (__str._M_is_local()) { if (__builtin_expect(std::__addressof(__str) != this, true)) { if (__str.size()) this->_S_copy(_M_data(), __str._M_data(), __str.size()); _M_set_length(__str.size()); } } else if (_Alloc_traits::_S_propagate_on_move_assign() || __equal_allocs) { pointer __data = nullptr; size_type __capacity; if (!_M_is_local()) { if (__equal_allocs) { __data = _M_data(); __capacity = _M_allocated_capacity; } else _M_destroy(_M_allocated_capacity); } _M_data(__str._M_data()); _M_length(__str.length()); _M_capacity(__str._M_allocated_capacity); if (__data) { __str._M_data(__data); __str._M_capacity(__capacity); } else __str._M_data(__str._M_use_local_data()); } else _M_assign(__str); __str.clear(); return *this; } constexpr basic_string& operator=(initializer_list<_CharT> __l) { this->assign(__l.begin(), __l.size()); return *this; } template constexpr _If_sv<_Tp, basic_string&> operator=(const _Tp& __svt) { return this->assign(__svt); } constexpr operator __sv_type() const noexcept { return __sv_type(data(), size()); } [[__nodiscard__]] constexpr iterator begin() noexcept { return iterator(_M_data()); } [[__nodiscard__]] constexpr const_iterator begin() const noexcept { return const_iterator(_M_data()); } [[__nodiscard__]] constexpr iterator end() noexcept { return iterator(_M_data() + this->size()); } [[__nodiscard__]] constexpr const_iterator end() const noexcept { return const_iterator(_M_data() + this->size()); } [[__nodiscard__]] constexpr reverse_iterator rbegin() noexcept { return reverse_iterator(this->end()); } [[__nodiscard__]] constexpr const_reverse_iterator rbegin() const noexcept { return const_reverse_iterator(this->end()); } [[__nodiscard__]] constexpr reverse_iterator rend() noexcept { return reverse_iterator(this->begin()); } [[__nodiscard__]] constexpr const_reverse_iterator rend() const noexcept { return const_reverse_iterator(this->begin()); } [[__nodiscard__]] constexpr const_iterator cbegin() const noexcept { return const_iterator(this->_M_data()); } [[__nodiscard__]] constexpr const_iterator cend() const noexcept { return const_iterator(this->_M_data() + this->size()); } [[__nodiscard__]] constexpr const_reverse_iterator crbegin() const noexcept { return const_reverse_iterator(this->end()); } [[__nodiscard__]] constexpr const_reverse_iterator crend() const noexcept { return const_reverse_iterator(this->begin()); } public: [[__nodiscard__]] constexpr size_type size() const noexcept { size_type __sz = _M_string_length; if (__sz > max_size ()) __builtin_unreachable (); return __sz; } [[__nodiscard__]] constexpr size_type length() const noexcept { return size(); } [[__nodiscard__]] constexpr size_type max_size() const noexcept { const size_t __diffmax = __gnu_cxx::__numeric_traits::__max / sizeof(_CharT); const size_t __allocmax = _Alloc_traits::max_size(_M_get_allocator()); return (std::min)(__diffmax, __allocmax) - 1; } # 1199 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr void resize(size_type __n, _CharT __c); # 1213 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr void resize(size_type __n) { this->resize(__n, _CharT()); } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" constexpr void shrink_to_fit() noexcept { reserve(); } #pragma GCC diagnostic pop # 1259 "/usr/include/c++/15/bits/basic_string.h" 3 template constexpr void resize_and_overwrite(size_type __n, _Operation __op); template constexpr void __resize_and_overwrite(size_type __n, _Operation __op); [[__nodiscard__]] constexpr size_type capacity() const noexcept { size_t __sz = _M_is_local() ? size_type(_S_local_capacity) : _M_allocated_capacity; if (__sz < _S_local_capacity || __sz > max_size ()) __builtin_unreachable (); return __sz; } # 1303 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr void reserve(size_type __res_arg); [[deprecated("use shrink_to_fit() instead")]] constexpr void reserve(); constexpr void clear() noexcept { _M_set_length(0); } [[__nodiscard__]] constexpr bool empty() const noexcept { return _M_string_length == 0; } # 1345 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr const_reference operator[] (size_type __pos) const noexcept { do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) std::__glibcxx_assert_fail(); } while (false); return _M_data()[__pos]; } # 1363 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr reference operator[](size_type __pos) { do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) std::__glibcxx_assert_fail(); } while (false); ; return _M_data()[__pos]; } # 1385 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr const_reference at(size_type __n) const { if (__n >= this->size()) __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") , __n, this->size()); return _M_data()[__n]; } # 1407 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr reference at(size_type __n) { if (__n >= size()) __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") , __n, this->size()); return _M_data()[__n]; } [[__nodiscard__]] constexpr reference front() noexcept { do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); return operator[](0); } [[__nodiscard__]] constexpr const_reference front() const noexcept { do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); return operator[](0); } [[__nodiscard__]] constexpr reference back() noexcept { do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); return operator[](this->size() - 1); } [[__nodiscard__]] constexpr const_reference back() const noexcept { do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); return operator[](this->size() - 1); } # 1475 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& operator+=(const basic_string& __str) { return this->append(__str); } constexpr basic_string& operator+=(const _CharT* __s) { return this->append(__s); } constexpr basic_string& operator+=(_CharT __c) { this->push_back(__c); return *this; } constexpr basic_string& operator+=(initializer_list<_CharT> __l) { return this->append(__l.begin(), __l.size()); } # 1521 "/usr/include/c++/15/bits/basic_string.h" 3 template constexpr _If_sv<_Tp, basic_string&> operator+=(const _Tp& __svt) { return this->append(__svt); } constexpr basic_string& append(const basic_string& __str) { return this->append(__str._M_data(), __str.size()); } # 1551 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& append(const basic_string& __str, size_type __pos, size_type __n = npos) { return this->append(__str._M_data() + __str._M_check(__pos, "basic_string::append"), __str._M_limit(__pos, __n)); } constexpr basic_string& append(const _CharT* __s, size_type __n) { ; _M_check_length(size_type(0), __n, "basic_string::append"); return _M_append(__s, __n); } constexpr basic_string& append(const _CharT* __s) { ; const size_type __n = traits_type::length(__s); _M_check_length(size_type(0), __n, "basic_string::append"); return _M_append(__s, __n); } # 1596 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& append(size_type __n, _CharT __c) { return _M_replace_aux(this->size(), size_type(0), __n, __c); } # 1609 "/usr/include/c++/15/bits/basic_string.h" 3 template<__detail::__container_compatible_range<_CharT> _Rg> constexpr basic_string& append_range(_Rg&& __rg) { if constexpr (ranges::forward_range<_Rg> || ranges::sized_range<_Rg>) { const auto __len = size_type(ranges::distance(__rg)); const size_type __newlen = size() + __len; if ((capacity() - size()) >= __len) _S_copy_range(_M_data() + size(), std::forward<_Rg>(__rg), __len); else { _M_check_length(0, __len, "basic_string::append_range"); basic_string __s(_M_get_allocator()); __s.reserve(__newlen); _S_copy_range(__s._M_data() + size(), std::forward<_Rg>(__rg), __len); _S_copy(__s._M_data(), _M_data(), size()); if (!_M_is_local()) _M_destroy(_M_allocated_capacity); _M_data(__s._M_data()); _M_capacity(__s._M_allocated_capacity); __s._M_data(__s._M_local_data()); __s._M_length(0); } _M_set_length(__newlen); } else { basic_string __s(from_range, std::forward<_Rg>(__rg), _M_get_allocator()); append(__s); } return *this; } # 1659 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& append(initializer_list<_CharT> __l) { return this->append(__l.begin(), __l.size()); } # 1674 "/usr/include/c++/15/bits/basic_string.h" 3 template> constexpr basic_string& append(_InputIterator __first, _InputIterator __last) { return this->replace(end(), end(), __first, __last); } template constexpr _If_sv<_Tp, basic_string&> append(const _Tp& __svt) { __sv_type __sv = __svt; return this->append(__sv.data(), __sv.size()); } # 1706 "/usr/include/c++/15/bits/basic_string.h" 3 template constexpr _If_sv<_Tp, basic_string&> append(const _Tp& __svt, size_type __pos, size_type __n = npos) { __sv_type __sv = __svt; return _M_append(__sv.data() + std::__sv_check(__sv.size(), __pos, "basic_string::append"), std::__sv_limit(__sv.size(), __pos, __n)); } constexpr void push_back(_CharT __c) { const size_type __size = this->size(); if (__size + 1 > this->capacity()) this->_M_mutate(__size, size_type(0), 0, size_type(1)); traits_type::assign(this->_M_data()[__size], __c); this->_M_set_length(__size + 1); } constexpr basic_string& assign(const basic_string& __str) { if (_Alloc_traits::_S_propagate_on_copy_assign()) { if (!_Alloc_traits::_S_always_equal() && !_M_is_local() && _M_get_allocator() != __str._M_get_allocator()) { if (__str.size() <= _S_local_capacity) { _M_destroy(_M_allocated_capacity); _M_data(_M_use_local_data()); _M_set_length(0); } else { const auto __len = __str.size(); auto __alloc = __str._M_get_allocator(); auto __ptr = _S_allocate(__alloc, __len + 1); _M_destroy(_M_allocated_capacity); _M_data(__ptr); _M_capacity(__len); _M_set_length(__len); } } std::__alloc_on_copy(_M_get_allocator(), __str._M_get_allocator()); } this->_M_assign(__str); return *this; } # 1784 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& assign(basic_string&& __str) noexcept(_Alloc_traits::_S_nothrow_move()) { return *this = std::move(__str); } # 1808 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& assign(const basic_string& __str, size_type __pos, size_type __n = npos) { return _M_replace(size_type(0), this->size(), __str._M_data() + __str._M_check(__pos, "basic_string::assign"), __str._M_limit(__pos, __n)); } # 1825 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& assign(const _CharT* __s, size_type __n) { ; return _M_replace(size_type(0), this->size(), __s, __n); } # 1842 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& assign(const _CharT* __s) { ; return _M_replace(size_type(0), this->size(), __s, traits_type::length(__s)); } # 1860 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& assign(size_type __n, _CharT __c) { return _M_replace_aux(size_type(0), this->size(), __n, __c); } # 1874 "/usr/include/c++/15/bits/basic_string.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++17-extensions" template> constexpr basic_string& assign(_InputIterator __first, _InputIterator __last) { using _IterTraits = iterator_traits<_InputIterator>; if constexpr (is_pointer::value && is_same::value) { ; return _M_replace(size_type(0), size(), std::__niter_base(__first), __last - __first); } else if constexpr (contiguous_iterator<_InputIterator> && is_same_v, _CharT>) { ; return _M_replace(size_type(0), size(), std::to_address(__first), __last - __first); } else return *this = basic_string(__first, __last, get_allocator()); } #pragma GCC diagnostic pop # 1920 "/usr/include/c++/15/bits/basic_string.h" 3 template<__detail::__container_compatible_range<_CharT> _Rg> constexpr basic_string& assign_range(_Rg&& __rg) { basic_string __s(from_range, std::forward<_Rg>(__rg), _M_get_allocator()); assign(std::move(__s)); return *this; } # 1937 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& assign(initializer_list<_CharT> __l) { const size_type __n = __l.size(); if (__n > capacity()) *this = basic_string(__l.begin(), __l.end(), get_allocator()); else { if (__n) _S_copy(_M_data(), __l.begin(), __n); _M_set_length(__n); } return *this; } # 1962 "/usr/include/c++/15/bits/basic_string.h" 3 template constexpr _If_sv<_Tp, basic_string&> assign(const _Tp& __svt) { __sv_type __sv = __svt; return this->assign(__sv.data(), __sv.size()); } # 1978 "/usr/include/c++/15/bits/basic_string.h" 3 template constexpr _If_sv<_Tp, basic_string&> assign(const _Tp& __svt, size_type __pos, size_type __n = npos) { __sv_type __sv = __svt; return _M_replace(size_type(0), this->size(), __sv.data() + std::__sv_check(__sv.size(), __pos, "basic_string::assign"), std::__sv_limit(__sv.size(), __pos, __n)); } # 2007 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr iterator insert(const_iterator __p, size_type __n, _CharT __c) { ; const size_type __pos = __p - begin(); this->replace(__p, __p, __n, __c); return iterator(this->_M_data() + __pos); } # 2050 "/usr/include/c++/15/bits/basic_string.h" 3 template> constexpr iterator insert(const_iterator __p, _InputIterator __beg, _InputIterator __end) { ; const size_type __pos = __p - begin(); this->replace(__p, __p, __beg, __end); return iterator(this->_M_data() + __pos); } # 2088 "/usr/include/c++/15/bits/basic_string.h" 3 template<__detail::__container_compatible_range<_CharT> _Rg> constexpr iterator insert_range(const_iterator __p, _Rg&& __rg) { auto __pos = __p - cbegin(); if constexpr (ranges::forward_range<_Rg>) if (ranges::empty(__rg)) return begin() + __pos; if (__p == cend()) append_range(std::forward<_Rg>(__rg)); else { basic_string __s(from_range, std::forward<_Rg>(__rg), _M_get_allocator()); insert(__pos, __s); } return begin() + __pos; } # 2118 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr iterator insert(const_iterator __p, initializer_list<_CharT> __l) { return this->insert(__p, __l.begin(), __l.end()); } # 2146 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& insert(size_type __pos1, const basic_string& __str) { return this->replace(__pos1, size_type(0), __str._M_data(), __str.size()); } # 2170 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& insert(size_type __pos1, const basic_string& __str, size_type __pos2, size_type __n = npos) { return this->replace(__pos1, size_type(0), __str._M_data() + __str._M_check(__pos2, "basic_string::insert"), __str._M_limit(__pos2, __n)); } # 2194 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& insert(size_type __pos, const _CharT* __s, size_type __n) { return this->replace(__pos, size_type(0), __s, __n); } # 2214 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& insert(size_type __pos, const _CharT* __s) { ; return this->replace(__pos, size_type(0), __s, traits_type::length(__s)); } # 2239 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& insert(size_type __pos, size_type __n, _CharT __c) { return _M_replace_aux(_M_check(__pos, "basic_string::insert"), size_type(0), __n, __c); } # 2258 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr iterator insert(__const_iterator __p, _CharT __c) { ; const size_type __pos = __p - begin(); _M_replace_aux(__pos, size_type(0), size_type(1), __c); return iterator(_M_data() + __pos); } # 2275 "/usr/include/c++/15/bits/basic_string.h" 3 template constexpr _If_sv<_Tp, basic_string&> insert(size_type __pos, const _Tp& __svt) { __sv_type __sv = __svt; return this->insert(__pos, __sv.data(), __sv.size()); } # 2292 "/usr/include/c++/15/bits/basic_string.h" 3 template constexpr _If_sv<_Tp, basic_string&> insert(size_type __pos1, const _Tp& __svt, size_type __pos2, size_type __n = npos) { __sv_type __sv = __svt; return this->replace(__pos1, size_type(0), __sv.data() + std::__sv_check(__sv.size(), __pos2, "basic_string::insert"), std::__sv_limit(__sv.size(), __pos2, __n)); } # 2321 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& erase(size_type __pos = 0, size_type __n = npos) { _M_check(__pos, "basic_string::erase"); if (__n == npos) this->_M_set_length(__pos); else if (__n != 0) this->_M_erase(__pos, _M_limit(__pos, __n)); return *this; } # 2341 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr iterator erase(__const_iterator __position) { ; const size_type __pos = __position - begin(); this->_M_erase(__pos, size_type(1)); return iterator(_M_data() + __pos); } # 2361 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr iterator erase(__const_iterator __first, __const_iterator __last) { ; const size_type __pos = __first - begin(); if (__last == end()) this->_M_set_length(__pos); else this->_M_erase(__pos, __last - __first); return iterator(this->_M_data() + __pos); } constexpr void pop_back() noexcept { do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); _M_erase(size() - 1, 1); } # 2407 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& replace(size_type __pos, size_type __n, const basic_string& __str) { return this->replace(__pos, __n, __str._M_data(), __str.size()); } # 2430 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& replace(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2 = npos) { return this->replace(__pos1, __n1, __str._M_data() + __str._M_check(__pos2, "basic_string::replace"), __str._M_limit(__pos2, __n2)); } # 2456 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& replace(size_type __pos, size_type __n1, const _CharT* __s, size_type __n2) { ; return _M_replace(_M_check(__pos, "basic_string::replace"), _M_limit(__pos, __n1), __s, __n2); } # 2482 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& replace(size_type __pos, size_type __n1, const _CharT* __s) { ; return this->replace(__pos, __n1, __s, traits_type::length(__s)); } # 2507 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) { return _M_replace_aux(_M_check(__pos, "basic_string::replace"), _M_limit(__pos, __n1), __n2, __c); } # 2526 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, const basic_string& __str) { return this->replace(__i1, __i2, __str._M_data(), __str.size()); } # 2547 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s, size_type __n) { ; return this->replace(__i1 - begin(), __i2 - __i1, __s, __n); } # 2570 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s) { ; return this->replace(__i1, __i2, __s, traits_type::length(__s)); } # 2592 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, size_type __n, _CharT __c) { ; return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __c); } # 2618 "/usr/include/c++/15/bits/basic_string.h" 3 template> constexpr basic_string& replace(const_iterator __i1, const_iterator __i2, _InputIterator __k1, _InputIterator __k2) { ; ; return this->_M_replace_dispatch(__i1, __i2, __k1, __k2, std::__false_type()); } # 2651 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, _CharT* __k1, _CharT* __k2) { ; ; return this->replace(__i1 - begin(), __i2 - __i1, __k1, __k2 - __k1); } constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __k1, const _CharT* __k2) { ; ; return this->replace(__i1 - begin(), __i2 - __i1, __k1, __k2 - __k1); } constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, iterator __k1, iterator __k2) { ; ; return this->replace(__i1 - begin(), __i2 - __i1, __k1.base(), __k2 - __k1); } constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, const_iterator __k1, const_iterator __k2) { ; ; return this->replace(__i1 - begin(), __i2 - __i1, __k1.base(), __k2 - __k1); } # 2707 "/usr/include/c++/15/bits/basic_string.h" 3 template<__detail::__container_compatible_range<_CharT> _Rg> constexpr basic_string& replace_with_range(const_iterator __i1, const_iterator __i2, _Rg&& __rg) { if (__i1 == cend()) append_range(std::forward<_Rg>(__rg)); else { basic_string __s(from_range, std::forward<_Rg>(__rg), _M_get_allocator()); replace(__i1, __i2, __s); } return *this; } # 2738 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr basic_string& replace(const_iterator __i1, const_iterator __i2, initializer_list<_CharT> __l) { return this->replace(__i1, __i2, __l.begin(), __l.size()); } # 2752 "/usr/include/c++/15/bits/basic_string.h" 3 template constexpr _If_sv<_Tp, basic_string&> replace(size_type __pos, size_type __n, const _Tp& __svt) { __sv_type __sv = __svt; return this->replace(__pos, __n, __sv.data(), __sv.size()); } # 2770 "/usr/include/c++/15/bits/basic_string.h" 3 template constexpr _If_sv<_Tp, basic_string&> replace(size_type __pos1, size_type __n1, const _Tp& __svt, size_type __pos2, size_type __n2 = npos) { __sv_type __sv = __svt; return this->replace(__pos1, __n1, __sv.data() + std::__sv_check(__sv.size(), __pos2, "basic_string::replace"), std::__sv_limit(__sv.size(), __pos2, __n2)); } # 2792 "/usr/include/c++/15/bits/basic_string.h" 3 template constexpr _If_sv<_Tp, basic_string&> replace(const_iterator __i1, const_iterator __i2, const _Tp& __svt) { __sv_type __sv = __svt; return this->replace(__i1 - begin(), __i2 - __i1, __sv); } private: template constexpr basic_string& _M_replace_dispatch(const_iterator __i1, const_iterator __i2, _Integer __n, _Integer __val, __true_type) { return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __val); } template constexpr basic_string& _M_replace_dispatch(const_iterator __i1, const_iterator __i2, _InputIterator __k1, _InputIterator __k2, __false_type); constexpr basic_string& _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, _CharT __c); __attribute__((__noinline__, __noclone__, __cold__)) void _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, const size_type __len2, const size_type __how_much); constexpr basic_string& _M_replace(size_type __pos, size_type __len1, const _CharT* __s, const size_type __len2); constexpr basic_string& _M_append(const _CharT* __s, size_type __n); public: # 2849 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr size_type copy(_CharT* __s, size_type __n, size_type __pos = 0) const; # 2860 "/usr/include/c++/15/bits/basic_string.h" 3 constexpr void swap(basic_string& __s) noexcept; # 2871 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr const _CharT* c_str() const noexcept { return _M_data(); } # 2884 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr const _CharT* data() const noexcept { return _M_data(); } # 2896 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr _CharT* data() noexcept { return _M_data(); } [[__nodiscard__]] constexpr allocator_type get_allocator() const noexcept { return _M_get_allocator(); } # 2922 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find(const _CharT* __s, size_type __pos, size_type __n) const noexcept; # 2937 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find(const basic_string& __str, size_type __pos = 0) const noexcept { return this->find(__str.data(), __pos, __str.size()); } # 2950 "/usr/include/c++/15/bits/basic_string.h" 3 template [[__nodiscard__]] constexpr _If_sv<_Tp, size_type> find(const _Tp& __svt, size_type __pos = 0) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; return this->find(__sv.data(), __pos, __sv.size()); } # 2971 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find(const _CharT* __s, size_type __pos = 0) const noexcept { ; return this->find(__s, __pos, traits_type::length(__s)); } # 2989 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find(_CharT __c, size_type __pos = 0) const noexcept; # 3003 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type rfind(const basic_string& __str, size_type __pos = npos) const noexcept { return this->rfind(__str.data(), __pos, __str.size()); } # 3016 "/usr/include/c++/15/bits/basic_string.h" 3 template [[__nodiscard__]] constexpr _If_sv<_Tp, size_type> rfind(const _Tp& __svt, size_type __pos = npos) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; return this->rfind(__sv.data(), __pos, __sv.size()); } # 3039 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type rfind(const _CharT* __s, size_type __pos, size_type __n) const noexcept; # 3054 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type rfind(const _CharT* __s, size_type __pos = npos) const { ; return this->rfind(__s, __pos, traits_type::length(__s)); } # 3072 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type rfind(_CharT __c, size_type __pos = npos) const noexcept; # 3087 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_of(const basic_string& __str, size_type __pos = 0) const noexcept { return this->find_first_of(__str.data(), __pos, __str.size()); } # 3101 "/usr/include/c++/15/bits/basic_string.h" 3 template [[__nodiscard__]] constexpr _If_sv<_Tp, size_type> find_first_of(const _Tp& __svt, size_type __pos = 0) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; return this->find_first_of(__sv.data(), __pos, __sv.size()); } # 3124 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept; # 3139 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_of(const _CharT* __s, size_type __pos = 0) const noexcept { ; return this->find_first_of(__s, __pos, traits_type::length(__s)); } # 3160 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_of(_CharT __c, size_type __pos = 0) const noexcept { return this->find(__c, __pos); } # 3176 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_of(const basic_string& __str, size_type __pos = npos) const noexcept { return this->find_last_of(__str.data(), __pos, __str.size()); } # 3190 "/usr/include/c++/15/bits/basic_string.h" 3 template [[__nodiscard__]] constexpr _If_sv<_Tp, size_type> find_last_of(const _Tp& __svt, size_type __pos = npos) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; return this->find_last_of(__sv.data(), __pos, __sv.size()); } # 3213 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept; # 3228 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_of(const _CharT* __s, size_type __pos = npos) const noexcept { ; return this->find_last_of(__s, __pos, traits_type::length(__s)); } # 3249 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_of(_CharT __c, size_type __pos = npos) const noexcept { return this->rfind(__c, __pos); } # 3264 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_not_of(const basic_string& __str, size_type __pos = 0) const noexcept { return this->find_first_not_of(__str.data(), __pos, __str.size()); } # 3278 "/usr/include/c++/15/bits/basic_string.h" 3 template [[__nodiscard__]] constexpr _If_sv<_Tp, size_type> find_first_not_of(const _Tp& __svt, size_type __pos = 0) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; return this->find_first_not_of(__sv.data(), __pos, __sv.size()); } # 3301 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept; # 3316 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_not_of(const _CharT* __s, size_type __pos = 0) const noexcept { ; return this->find_first_not_of(__s, __pos, traits_type::length(__s)); } # 3335 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_not_of(_CharT __c, size_type __pos = 0) const noexcept; # 3351 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_not_of(const basic_string& __str, size_type __pos = npos) const noexcept { return this->find_last_not_of(__str.data(), __pos, __str.size()); } # 3365 "/usr/include/c++/15/bits/basic_string.h" 3 template [[__nodiscard__]] constexpr _If_sv<_Tp, size_type> find_last_not_of(const _Tp& __svt, size_type __pos = npos) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; return this->find_last_not_of(__sv.data(), __pos, __sv.size()); } # 3388 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept; # 3403 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_not_of(const _CharT* __s, size_type __pos = npos) const noexcept { ; return this->find_last_not_of(__s, __pos, traits_type::length(__s)); } # 3422 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_not_of(_CharT __c, size_type __pos = npos) const noexcept; # 3439 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr basic_string substr(size_type __pos = 0, size_type __n = npos) const { return basic_string(*this, _M_check(__pos, "basic_string::substr"), __n); } # 3459 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr int compare(const basic_string& __str) const { const size_type __size = this->size(); const size_type __osize = __str.size(); const size_type __len = std::min(__size, __osize); int __r = traits_type::compare(_M_data(), __str.data(), __len); if (!__r) __r = _S_compare(__size, __osize); return __r; } template [[__nodiscard__]] constexpr _If_sv<_Tp, int> compare(const _Tp& __svt) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; const size_type __size = this->size(); const size_type __osize = __sv.size(); const size_type __len = std::min(__size, __osize); int __r = traits_type::compare(_M_data(), __sv.data(), __len); if (!__r) __r = _S_compare(__size, __osize); return __r; } # 3504 "/usr/include/c++/15/bits/basic_string.h" 3 template [[__nodiscard__]] constexpr _If_sv<_Tp, int> compare(size_type __pos, size_type __n, const _Tp& __svt) const { __sv_type __sv = __svt; return __sv_type(*this).substr(__pos, __n).compare(__sv); } # 3523 "/usr/include/c++/15/bits/basic_string.h" 3 template [[__nodiscard__]] constexpr _If_sv<_Tp, int> compare(size_type __pos1, size_type __n1, const _Tp& __svt, size_type __pos2, size_type __n2 = npos) const { __sv_type __sv = __svt; return __sv_type(*this) .substr(__pos1, __n1).compare(__sv.substr(__pos2, __n2)); } # 3554 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr int compare(size_type __pos, size_type __n, const basic_string& __str) const { _M_check(__pos, "basic_string::compare"); __n = _M_limit(__pos, __n); const size_type __osize = __str.size(); const size_type __len = std::min(__n, __osize); int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len); if (!__r) __r = _S_compare(__n, __osize); return __r; } # 3591 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr int compare(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2 = npos) const { _M_check(__pos1, "basic_string::compare"); __str._M_check(__pos2, "basic_string::compare"); __n1 = _M_limit(__pos1, __n1); __n2 = __str._M_limit(__pos2, __n2); const size_type __len = std::min(__n1, __n2); int __r = traits_type::compare(_M_data() + __pos1, __str.data() + __pos2, __len); if (!__r) __r = _S_compare(__n1, __n2); return __r; } # 3622 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr int compare(const _CharT* __s) const noexcept { ; const size_type __size = this->size(); const size_type __osize = traits_type::length(__s); const size_type __len = std::min(__size, __osize); int __r = traits_type::compare(_M_data(), __s, __len); if (!__r) __r = _S_compare(__size, __osize); return __r; } # 3657 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr int compare(size_type __pos, size_type __n1, const _CharT* __s) const { ; _M_check(__pos, "basic_string::compare"); __n1 = _M_limit(__pos, __n1); const size_type __osize = traits_type::length(__s); const size_type __len = std::min(__n1, __osize); int __r = traits_type::compare(_M_data() + __pos, __s, __len); if (!__r) __r = _S_compare(__n1, __osize); return __r; } # 3696 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] constexpr int compare(size_type __pos, size_type __n1, const _CharT* __s, size_type __n2) const { ; _M_check(__pos, "basic_string::compare"); __n1 = _M_limit(__pos, __n1); const size_type __len = std::min(__n1, __n2); int __r = traits_type::compare(_M_data() + __pos, __s, __len); if (!__r) __r = _S_compare(__n1, __n2); return __r; } [[nodiscard]] constexpr bool starts_with(basic_string_view<_CharT, _Traits> __x) const noexcept { return __sv_type(this->data(), this->size()).starts_with(__x); } [[nodiscard]] constexpr bool starts_with(_CharT __x) const noexcept { return __sv_type(this->data(), this->size()).starts_with(__x); } [[nodiscard, __gnu__::__nonnull__]] constexpr bool starts_with(const _CharT* __x) const noexcept { return __sv_type(this->data(), this->size()).starts_with(__x); } [[nodiscard]] constexpr bool ends_with(basic_string_view<_CharT, _Traits> __x) const noexcept { return __sv_type(this->data(), this->size()).ends_with(__x); } [[nodiscard]] constexpr bool ends_with(_CharT __x) const noexcept { return __sv_type(this->data(), this->size()).ends_with(__x); } [[nodiscard, __gnu__::__nonnull__]] constexpr bool ends_with(const _CharT* __x) const noexcept { return __sv_type(this->data(), this->size()).ends_with(__x); } [[nodiscard]] constexpr bool contains(basic_string_view<_CharT, _Traits> __x) const noexcept { return __sv_type(this->data(), this->size()).contains(__x); } [[nodiscard]] constexpr bool contains(_CharT __x) const noexcept { return __sv_type(this->data(), this->size()).contains(__x); } [[nodiscard, __gnu__::__nonnull__]] constexpr bool contains(const _CharT* __x) const noexcept { return __sv_type(this->data(), this->size()).contains(__x); } template friend class basic_stringbuf; }; } } namespace std __attribute__ ((__visibility__ ("default"))) { namespace __cxx11 { template::value_type, typename _Allocator = allocator<_CharT>, typename = _RequireInputIter<_InputIterator>, typename = _RequireAllocator<_Allocator>> basic_string(_InputIterator, _InputIterator, _Allocator = _Allocator()) -> basic_string<_CharT, char_traits<_CharT>, _Allocator>; template, typename = _RequireAllocator<_Allocator>> basic_string(basic_string_view<_CharT, _Traits>, const _Allocator& = _Allocator()) -> basic_string<_CharT, _Traits, _Allocator>; template, typename = _RequireAllocator<_Allocator>> basic_string(basic_string_view<_CharT, _Traits>, typename basic_string<_CharT, _Traits, _Allocator>::size_type, typename basic_string<_CharT, _Traits, _Allocator>::size_type, const _Allocator& = _Allocator()) -> basic_string<_CharT, _Traits, _Allocator>; template>> basic_string(from_range_t, _Rg&&, _Allocator = _Allocator()) -> basic_string, char_traits>, _Allocator>; } template constexpr inline _Str __str_concat(typename _Str::value_type const* __lhs, typename _Str::size_type __lhs_len, typename _Str::value_type const* __rhs, typename _Str::size_type __rhs_len, typename _Str::allocator_type const& __a) { typedef typename _Str::allocator_type allocator_type; typedef __gnu_cxx::__alloc_traits _Alloc_traits; _Str __str(_Alloc_traits::_S_select_on_copy(__a)); __str.reserve(__lhs_len + __rhs_len); __str.append(__lhs, __lhs_len); __str.append(__rhs, __rhs_len); return __str; } # 3835 "/usr/include/c++/15/bits/basic_string.h" 3 template [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { typedef basic_string<_CharT, _Traits, _Alloc> _Str; return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), __rhs.c_str(), __rhs.size(), __lhs.get_allocator()); } template [[__nodiscard__]] constexpr inline basic_string<_CharT,_Traits,_Alloc> operator+(const _CharT* __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs) { ; typedef basic_string<_CharT, _Traits, _Alloc> _Str; return std::__str_concat<_Str>(__lhs, _Traits::length(__lhs), __rhs.c_str(), __rhs.size(), __rhs.get_allocator()); } template [[__nodiscard__]] constexpr inline basic_string<_CharT,_Traits,_Alloc> operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs) { typedef basic_string<_CharT, _Traits, _Alloc> _Str; return std::__str_concat<_Str>(__builtin_addressof(__lhs), 1, __rhs.c_str(), __rhs.size(), __rhs.get_allocator()); } template [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const _CharT* __rhs) { ; typedef basic_string<_CharT, _Traits, _Alloc> _Str; return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), __rhs, _Traits::length(__rhs), __lhs.get_allocator()); } template [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) { typedef basic_string<_CharT, _Traits, _Alloc> _Str; return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), __builtin_addressof(__rhs), 1, __lhs.get_allocator()); } template [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { return std::move(__lhs.append(__rhs)); } template constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, basic_string<_CharT, _Traits, _Alloc>&& __rhs) { return std::move(__rhs.insert(0, __lhs)); } template [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, basic_string<_CharT, _Traits, _Alloc>&& __rhs) { using _Alloc_traits = allocator_traits<_Alloc>; bool __use_rhs = false; if constexpr (typename _Alloc_traits::is_always_equal{}) __use_rhs = true; else if (__lhs.get_allocator() == __rhs.get_allocator()) __use_rhs = true; if (__use_rhs) { const auto __size = __lhs.size() + __rhs.size(); if (__size > __lhs.capacity() && __size <= __rhs.capacity()) return std::move(__rhs.insert(0, __lhs)); } return std::move(__lhs.append(__rhs)); } template [[__nodiscard__]] [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(const _CharT* __lhs, basic_string<_CharT, _Traits, _Alloc>&& __rhs) { return std::move(__rhs.insert(0, __lhs)); } template [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(_CharT __lhs, basic_string<_CharT, _Traits, _Alloc>&& __rhs) { return std::move(__rhs.insert(0, 1, __lhs)); } template [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, const _CharT* __rhs) { return std::move(__lhs.append(__rhs)); } template [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, _CharT __rhs) { return std::move(__lhs.append(1, __rhs)); } # 4040 "/usr/include/c++/15/bits/basic_string.h" 3 template [[__nodiscard__]] constexpr inline bool operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) noexcept { return __lhs.size() == __rhs.size() && !_Traits::compare(__lhs.data(), __rhs.data(), __lhs.size()); } template [[__nodiscard__]] constexpr inline bool operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const _CharT* __rhs) { return __lhs.size() == _Traits::length(__rhs) && !_Traits::compare(__lhs.data(), __rhs, __lhs.size()); } # 4075 "/usr/include/c++/15/bits/basic_string.h" 3 template [[nodiscard]] constexpr auto operator<=>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) noexcept -> decltype(__detail::__char_traits_cmp_cat<_Traits>(0)) { return __detail::__char_traits_cmp_cat<_Traits>(__lhs.compare(__rhs)); } # 4090 "/usr/include/c++/15/bits/basic_string.h" 3 template [[nodiscard]] constexpr auto operator<=>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const _CharT* __rhs) noexcept -> decltype(__detail::__char_traits_cmp_cat<_Traits>(0)) { return __detail::__char_traits_cmp_cat<_Traits>(__lhs.compare(__rhs)); } # 4324 "/usr/include/c++/15/bits/basic_string.h" 3 template constexpr inline void swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, basic_string<_CharT, _Traits, _Alloc>& __rhs) noexcept(noexcept(__lhs.swap(__rhs))) { __lhs.swap(__rhs); } # 4345 "/usr/include/c++/15/bits/basic_string.h" 3 template basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, basic_string<_CharT, _Traits, _Alloc>& __str); template<> basic_istream& operator>>(basic_istream& __is, basic_string& __str); # 4363 "/usr/include/c++/15/bits/basic_string.h" 3 template inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const basic_string<_CharT, _Traits, _Alloc>& __str) { return __ostream_insert(__os, __str.data(), __str.size()); } # 4386 "/usr/include/c++/15/bits/basic_string.h" 3 template basic_istream<_CharT, _Traits>& getline(basic_istream<_CharT, _Traits>& __is, basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim); # 4403 "/usr/include/c++/15/bits/basic_string.h" 3 template inline basic_istream<_CharT, _Traits>& getline(basic_istream<_CharT, _Traits>& __is, basic_string<_CharT, _Traits, _Alloc>& __str) { return std::getline(__is, __str, __is.widen('\n')); } template inline basic_istream<_CharT, _Traits>& getline(basic_istream<_CharT, _Traits>&& __is, basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) { return std::getline(__is, __str, __delim); } template inline basic_istream<_CharT, _Traits>& getline(basic_istream<_CharT, _Traits>&& __is, basic_string<_CharT, _Traits, _Alloc>& __str) { return std::getline(__is, __str); } template<> basic_istream& getline(basic_istream& __in, basic_string& __str, char __delim); template<> basic_istream& getline(basic_istream& __in, basic_string& __str, wchar_t __delim); } # 1 "/usr/include/c++/15/ext/string_conversions.h" 1 3 # 47 "/usr/include/c++/15/ext/string_conversions.h" 3 # 1 "/usr/include/c++/15/cstdio" 1 3 # 98 "/usr/include/c++/15/cstdio" 3 namespace std { using ::FILE; using ::fpos_t; using ::clearerr; using ::fclose; using ::feof; using ::ferror; using ::fflush; using ::fgetc; using ::fgetpos; using ::fgets; using ::fopen; using ::fprintf; using ::fputc; using ::fputs; using ::fread; using ::freopen; using ::fscanf; using ::fseek; using ::fsetpos; using ::ftell; using ::fwrite; using ::getc; using ::getchar; using ::perror; using ::printf; using ::putc; using ::putchar; using ::puts; using ::remove; using ::rename; using ::rewind; using ::scanf; using ::setbuf; using ::setvbuf; using ::sprintf; using ::sscanf; using ::tmpfile; using ::tmpnam; using ::ungetc; using ::vfprintf; using ::vprintf; using ::vsprintf; } # 159 "/usr/include/c++/15/cstdio" 3 namespace __gnu_cxx { # 177 "/usr/include/c++/15/cstdio" 3 using ::snprintf; using ::vfscanf; using ::vscanf; using ::vsnprintf; using ::vsscanf; } namespace std { using ::__gnu_cxx::snprintf; using ::__gnu_cxx::vfscanf; using ::__gnu_cxx::vscanf; using ::__gnu_cxx::vsnprintf; using ::__gnu_cxx::vsscanf; } # 48 "/usr/include/c++/15/ext/string_conversions.h" 2 3 # 1 "/usr/include/c++/15/cerrno" 1 3 # 47 "/usr/include/c++/15/cerrno" 3 # 1 "/usr/include/errno.h" 1 3 4 # 28 "/usr/include/errno.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/errno.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/errno.h" 3 4 # 1 "/usr/include/linux/errno.h" 1 3 4 # 1 "/usr/include/x86_64-linux-gnu/asm/errno.h" 1 3 4 # 1 "/usr/include/asm-generic/errno.h" 1 3 4 # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 # 6 "/usr/include/asm-generic/errno.h" 2 3 4 # 2 "/usr/include/x86_64-linux-gnu/asm/errno.h" 2 3 4 # 2 "/usr/include/linux/errno.h" 2 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/errno.h" 2 3 4 # 29 "/usr/include/errno.h" 2 3 4 extern "C" { extern int *__errno_location (void) noexcept (true) __attribute__ ((__const__)); extern char *program_invocation_name; extern char *program_invocation_short_name; # 1 "/usr/include/x86_64-linux-gnu/bits/types/error_t.h" 1 3 4 # 22 "/usr/include/x86_64-linux-gnu/bits/types/error_t.h" 3 4 typedef int error_t; # 49 "/usr/include/errno.h" 2 3 4 } # 48 "/usr/include/c++/15/cerrno" 2 3 # 49 "/usr/include/c++/15/ext/string_conversions.h" 2 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { template _Ret __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), const char* __name, const _CharT* __str, std::size_t* __idx, _Base... __base) { _Ret __ret; _CharT* __endptr; struct _Save_errno { _Save_errno() : _M_errno((*__errno_location ())) { (*__errno_location ()) = 0; } ~_Save_errno() { if ((*__errno_location ()) == 0) (*__errno_location ()) = _M_errno; } int _M_errno; } const __save_errno; struct _Range_chk { static bool _S_chk(_TRet, std::false_type) { return false; } static bool _S_chk(_TRet __val, std::true_type) { return __val < _TRet(__numeric_traits::__min) || __val > _TRet(__numeric_traits::__max); } }; const _TRet __tmp = __convf(__str, &__endptr, __base...); if (__endptr == __str) std::__throw_invalid_argument(__name); else if ((*__errno_location ()) == 34 || _Range_chk::_S_chk(__tmp, std::is_same<_Ret, int>{})) std::__throw_out_of_range(__name); else __ret = __tmp; if (__idx) *__idx = __endptr - __str; return __ret; } template _String __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, __builtin_va_list), std::size_t __n, const _CharT* __fmt, ...) { _CharT* __s = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __n)); __builtin_va_list __args; __builtin_va_start(__args, __fmt); const int __len = __convf(__s, __n, __fmt, __args); __builtin_va_end(__args); return _String(__s, __s + __len); } } # 4443 "/usr/include/c++/15/bits/basic_string.h" 2 3 # 1 "/usr/include/c++/15/bits/charconv.h" 1 3 # 42 "/usr/include/c++/15/bits/charconv.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __detail { template constexpr bool __integer_to_chars_is_unsigned = ! __gnu_cxx::__int_traits<_Tp>::__is_signed; template constexpr unsigned __to_chars_len(_Tp __value, int __base = 10) noexcept { static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); unsigned __n = 1; const unsigned __b2 = __base * __base; const unsigned __b3 = __b2 * __base; const unsigned long __b4 = __b3 * __base; for (;;) { if (__value < (unsigned)__base) return __n; if (__value < __b2) return __n + 1; if (__value < __b3) return __n + 2; if (__value < __b4) return __n + 3; __value /= __b4; __n += 4; } } template constexpr void __to_chars_10_impl(char* __first, unsigned __len, _Tp __val) noexcept { static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); constexpr char __digits[201] = "0001020304050607080910111213141516171819" "2021222324252627282930313233343536373839" "4041424344454647484950515253545556575859" "6061626364656667686970717273747576777879" "8081828384858687888990919293949596979899"; unsigned __pos = __len - 1; while (__val >= 100) { auto const __num = (__val % 100) * 2; __val /= 100; __first[__pos] = __digits[__num + 1]; __first[__pos - 1] = __digits[__num]; __pos -= 2; } if (__val >= 10) { auto const __num = __val * 2; __first[1] = __digits[__num + 1]; __first[0] = __digits[__num]; } else __first[0] = '0' + __val; } } } # 4444 "/usr/include/c++/15/bits/basic_string.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __cxx11 { inline int stoi(const string& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::strtol, "stoi", __str.c_str(), __idx, __base); } inline long stol(const string& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(), __idx, __base); } inline unsigned long stoul(const string& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(), __idx, __base); } inline long long stoll(const string& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(), __idx, __base); } inline unsigned long long stoull(const string& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(), __idx, __base); } # 4486 "/usr/include/c++/15/bits/basic_string.h" 3 inline double stod(const string& __str, size_t* __idx = 0) { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); } inline float stof(const string& __str, size_t* __idx = 0) { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); } # 4514 "/usr/include/c++/15/bits/basic_string.h" 3 inline long double stold(const string& __str, size_t* __idx = 0) { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); } # 4526 "/usr/include/c++/15/bits/basic_string.h" 3 [[__nodiscard__]] inline string to_string(int __val) noexcept { const bool __neg = __val < 0; const unsigned __uval = __neg ? (unsigned)~__val + 1u : __val; const auto __len = __detail::__to_chars_len(__uval); string __str; __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { __p[0] = '-'; __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); return __n; }); return __str; } [[__nodiscard__]] inline string to_string(unsigned __val) noexcept { const auto __len = __detail::__to_chars_len(__val); string __str; __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { __detail::__to_chars_10_impl(__p, __n, __val); return __n; }); return __str; } [[__nodiscard__]] inline string to_string(long __val) { const bool __neg = __val < 0; const unsigned long __uval = __neg ? (unsigned long)~__val + 1ul : __val; const auto __len = __detail::__to_chars_len(__uval); string __str; __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { __p[0] = '-'; __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); return __n; }); return __str; } [[__nodiscard__]] inline string to_string(unsigned long __val) { const auto __len = __detail::__to_chars_len(__val); string __str; __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { __detail::__to_chars_10_impl(__p, __n, __val); return __n; }); return __str; } [[__nodiscard__]] inline string to_string(long long __val) { const bool __neg = __val < 0; const unsigned long long __uval = __neg ? (unsigned long long)~__val + 1ull : __val; const auto __len = __detail::__to_chars_len(__uval); string __str; __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { __p[0] = '-'; __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); return __n; }); return __str; } [[__nodiscard__]] inline string to_string(unsigned long long __val) { const auto __len = __detail::__to_chars_len(__val); string __str; __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { __detail::__to_chars_10_impl(__p, __n, __val); return __n; }); return __str; } # 4685 "/usr/include/c++/15/bits/basic_string.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wsuggest-attribute=format" [[__nodiscard__]] inline string to_string(float __val) { const int __n = __gnu_cxx::__numeric_traits::__max_exponent10 + 20; return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, "%f", __val); } [[__nodiscard__]] inline string to_string(double __val) { const int __n = __gnu_cxx::__numeric_traits::__max_exponent10 + 20; return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, "%f", __val); } [[__nodiscard__]] inline string to_string(long double __val) { const int __n = __gnu_cxx::__numeric_traits::__max_exponent10 + 20; return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, "%Lf", __val); } #pragma GCC diagnostic pop inline int stoi(const wstring& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::wcstol, "stoi", __str.c_str(), __idx, __base); } inline long stol(const wstring& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(), __idx, __base); } inline unsigned long stoul(const wstring& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(), __idx, __base); } inline long long stoll(const wstring& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(), __idx, __base); } inline unsigned long long stoull(const wstring& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(), __idx, __base); } inline float stof(const wstring& __str, size_t* __idx = 0) { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); } inline double stod(const wstring& __str, size_t* __idx = 0) { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); } inline long double stold(const wstring& __str, size_t* __idx = 0) { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++17-extensions" constexpr inline void __to_wstring_numeric(const char* __s, int __len, wchar_t* __wout) { if constexpr (wchar_t('0') == L'0' && wchar_t('-') == L'-' && wchar_t('.') == L'.' && wchar_t('e') == L'e') { for (int __i = 0; __i < __len; ++__i) __wout[__i] = (wchar_t) __s[__i]; } else { wchar_t __wc[256]; for (int __i = '0'; __i <= '9'; ++__i) __wc[__i] = L'0' + __i; __wc['.'] = L'.'; __wc['+'] = L'+'; __wc['-'] = L'-'; __wc['a'] = L'a'; __wc['b'] = L'b'; __wc['c'] = L'c'; __wc['d'] = L'd'; __wc['e'] = L'e'; __wc['f'] = L'f'; __wc['i'] = L'i'; __wc['n'] = L'n'; __wc['p'] = L'p'; __wc['x'] = L'x'; __wc['A'] = L'A'; __wc['B'] = L'B'; __wc['C'] = L'C'; __wc['D'] = L'D'; __wc['E'] = L'E'; __wc['F'] = L'F'; __wc['I'] = L'I'; __wc['N'] = L'N'; __wc['P'] = L'P'; __wc['X'] = L'X'; for (int __i = 0; __i < __len; ++__i) __wout[__i] = __wc[(int)__s[__i]]; } } constexpr inline wstring __to_wstring_numeric(string_view __s) { if constexpr (wchar_t('0') == L'0' && wchar_t('-') == L'-' && wchar_t('.') == L'.' && wchar_t('e') == L'e') return wstring(__s.data(), __s.data() + __s.size()); else { wstring __ws; auto __f = __s.data(); __ws.__resize_and_overwrite(__s.size(), [__f] (wchar_t* __to, int __n) { std::__to_wstring_numeric(__f, __n, __to); return __n; }); return __ws; } } #pragma GCC diagnostic pop [[__nodiscard__]] inline wstring to_wstring(int __val) { return std::__to_wstring_numeric(std::to_string(__val)); } [[__nodiscard__]] inline wstring to_wstring(unsigned __val) { return std::__to_wstring_numeric(std::to_string(__val)); } [[__nodiscard__]] inline wstring to_wstring(long __val) { return std::__to_wstring_numeric(std::to_string(__val)); } [[__nodiscard__]] inline wstring to_wstring(unsigned long __val) { return std::__to_wstring_numeric(std::to_string(__val)); } [[__nodiscard__]] inline wstring to_wstring(long long __val) { return std::__to_wstring_numeric(std::to_string(__val)); } [[__nodiscard__]] inline wstring to_wstring(unsigned long long __val) { return std::__to_wstring_numeric(std::to_string(__val)); } [[__nodiscard__]] inline wstring to_wstring(float __val) { return std::__to_wstring_numeric(std::to_string(__val)); } [[__nodiscard__]] inline wstring to_wstring(double __val) { return std::__to_wstring_numeric(std::to_string(__val)); } [[__nodiscard__]] inline wstring to_wstring(long double __val) { return std::__to_wstring_numeric(std::to_string(__val)); } } } namespace std __attribute__ ((__visibility__ ("default"))) { template, _Alloc>> struct __str_hash_base : public __hash_base { [[__nodiscard__]] size_t operator()(const _StrT& __s) const noexcept { return _Hash_impl::hash(__s.data(), __s.length() * sizeof(_CharT)); } }; template struct hash, _Alloc>> : public __str_hash_base { }; template struct hash, _Alloc>> : public __str_hash_base { }; template struct __is_fast_hash, _Alloc>>> : std::false_type { }; template struct hash, _Alloc>> : public __str_hash_base { }; template struct hash, _Alloc>> : public __str_hash_base { }; template struct hash, _Alloc>> : public __str_hash_base { }; template<> struct __is_fast_hash> : std::false_type { }; template<> struct __is_fast_hash> : std::false_type { }; template<> struct __is_fast_hash> : std::false_type { }; template<> struct __is_fast_hash> : std::false_type { }; template<> struct __is_fast_hash> : std::false_type { }; # 4971 "/usr/include/c++/15/bits/basic_string.h" 3 inline namespace literals { inline namespace string_literals { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wliteral-suffix" __attribute ((__abi_tag__ ("cxx11"))) constexpr inline basic_string operator""s(const char* __str, size_t __len) { return basic_string{__str, __len}; } __attribute ((__abi_tag__ ("cxx11"))) constexpr inline basic_string operator""s(const wchar_t* __str, size_t __len) { return basic_string{__str, __len}; } __attribute ((__abi_tag__ ("cxx11"))) constexpr inline basic_string operator""s(const char8_t* __str, size_t __len) { return basic_string{__str, __len}; } __attribute ((__abi_tag__ ("cxx11"))) constexpr inline basic_string operator""s(const char16_t* __str, size_t __len) { return basic_string{__str, __len}; } __attribute ((__abi_tag__ ("cxx11"))) constexpr inline basic_string operator""s(const char32_t* __str, size_t __len) { return basic_string{__str, __len}; } #pragma GCC diagnostic pop } } namespace __detail::__variant { template struct _Never_valueless_alt; template struct _Never_valueless_alt> : __and_< is_nothrow_move_constructible>, is_nothrow_move_assignable> >::type { }; } } # 57 "/usr/include/c++/15/string" 2 3 # 1 "/usr/include/c++/15/bits/basic_string.tcc" 1 3 # 46 "/usr/include/c++/15/bits/basic_string.tcc" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++11-extensions" namespace std __attribute__ ((__visibility__ ("default"))) { template const typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>::npos; template constexpr void basic_string<_CharT, _Traits, _Alloc>:: swap(basic_string& __s) noexcept { if (this == std::__addressof(__s)) return; _Alloc_traits::_S_on_swap(_M_get_allocator(), __s._M_get_allocator()); if (_M_is_local()) if (__s._M_is_local()) { if (length() && __s.length()) { _CharT __tmp_data[_S_local_capacity + 1]; traits_type::copy(__tmp_data, __s._M_local_buf, __s.length() + 1); traits_type::copy(__s._M_local_buf, _M_local_buf, length() + 1); traits_type::copy(_M_local_buf, __tmp_data, __s.length() + 1); } else if (__s.length()) { _M_init_local_buf(); traits_type::copy(_M_local_buf, __s._M_local_buf, __s.length() + 1); _M_length(__s.length()); __s._M_set_length(0); return; } else if (length()) { __s._M_init_local_buf(); traits_type::copy(__s._M_local_buf, _M_local_buf, length() + 1); __s._M_length(length()); _M_set_length(0); return; } } else { const size_type __tmp_capacity = __s._M_allocated_capacity; __s._M_init_local_buf(); traits_type::copy(__s._M_local_buf, _M_local_buf, length() + 1); _M_data(__s._M_data()); __s._M_data(__s._M_local_buf); _M_capacity(__tmp_capacity); } else { const size_type __tmp_capacity = _M_allocated_capacity; if (__s._M_is_local()) { _M_init_local_buf(); traits_type::copy(_M_local_buf, __s._M_local_buf, __s.length() + 1); __s._M_data(_M_data()); _M_data(_M_local_buf); } else { pointer __tmp_ptr = _M_data(); _M_data(__s._M_data()); __s._M_data(__tmp_ptr); _M_capacity(__s._M_allocated_capacity); } __s._M_capacity(__tmp_capacity); } const size_type __tmp_length = length(); _M_length(__s.length()); __s._M_length(__tmp_length); } template constexpr typename basic_string<_CharT, _Traits, _Alloc>::pointer basic_string<_CharT, _Traits, _Alloc>:: _M_create(size_type& __capacity, size_type __old_capacity) { if (__capacity > max_size()) std::__throw_length_error(("basic_string::_M_create")); if (__capacity > __old_capacity && __capacity < 2 * __old_capacity) { __capacity = 2 * __old_capacity; if (__capacity > max_size()) __capacity = max_size(); } return _S_allocate(_M_get_allocator(), __capacity + 1); } template template constexpr void basic_string<_CharT, _Traits, _Alloc>:: _M_construct(_InIterator __beg, _InIterator __end, std::input_iterator_tag) { size_type __len = 0; size_type __capacity = size_type(_S_local_capacity); _M_init_local_buf(); while (__beg != __end && __len < __capacity) { _M_local_buf[__len++] = *__beg; ++__beg; } struct _Guard { constexpr explicit _Guard(basic_string* __s) : _M_guarded(__s) { } constexpr ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } basic_string* _M_guarded; } __guard(this); while (__beg != __end) { if (__len == __capacity) { __capacity = __len + 1; pointer __another = _M_create(__capacity, __len); this->_S_copy(__another, _M_data(), __len); _M_dispose(); _M_data(__another); _M_capacity(__capacity); } traits_type::assign(_M_data()[__len++], static_cast<_CharT>(*__beg)); ++__beg; } __guard._M_guarded = 0; _M_set_length(__len); } template template constexpr void basic_string<_CharT, _Traits, _Alloc>:: _M_construct(_InIterator __beg, _InIterator __end, std::forward_iterator_tag) { size_type __dnew = static_cast(std::distance(__beg, __end)); if (__dnew > size_type(_S_local_capacity)) { _M_data(_M_create(__dnew, size_type(0))); _M_capacity(__dnew); } else _M_init_local_buf(); struct _Guard { constexpr explicit _Guard(basic_string* __s) : _M_guarded(__s) { } constexpr ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } basic_string* _M_guarded; } __guard(this); this->_S_copy_chars(_M_data(), __beg, __end); __guard._M_guarded = 0; _M_set_length(__dnew); } template constexpr void basic_string<_CharT, _Traits, _Alloc>:: _M_construct(size_type __n, _CharT __c) { if (__n > size_type(_S_local_capacity)) { _M_data(_M_create(__n, size_type(0))); _M_capacity(__n); } else _M_init_local_buf(); if (__n) this->_S_assign(_M_data(), __n, __c); _M_set_length(__n); } template template constexpr void basic_string<_CharT, _Traits, _Alloc>:: _M_construct(const _CharT* __str, size_type __n) { if (__n > size_type(_S_local_capacity)) { _M_data(_M_create(__n, size_type(0))); _M_capacity(__n); } else _M_init_local_buf(); if (__n || _Terminated) this->_S_copy(_M_data(), __str, __n + _Terminated); _M_length(__n); if (!_Terminated) traits_type::assign(_M_data()[__n], _CharT()); } template constexpr void basic_string<_CharT, _Traits, _Alloc>:: _M_assign(const basic_string& __str) { if (this != std::__addressof(__str)) { const size_type __rsize = __str.length(); const size_type __capacity = capacity(); if (__rsize > __capacity) { size_type __new_capacity = __rsize; pointer __tmp = _M_create(__new_capacity, __capacity); _M_dispose(); _M_data(__tmp); _M_capacity(__new_capacity); } if (__rsize) this->_S_copy(_M_data(), __str._M_data(), __rsize); _M_set_length(__rsize); } } template constexpr void basic_string<_CharT, _Traits, _Alloc>:: reserve(size_type __res) { const size_type __capacity = capacity(); if (__res <= __capacity) return; pointer __tmp = _M_create(__res, __capacity); this->_S_copy(__tmp, _M_data(), length() + 1); _M_dispose(); _M_data(__tmp); _M_capacity(__res); } template constexpr void basic_string<_CharT, _Traits, _Alloc>:: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, size_type __len2) { const size_type __how_much = length() - __pos - __len1; size_type __new_capacity = length() + __len2 - __len1; pointer __r = _M_create(__new_capacity, capacity()); if (__pos) this->_S_copy(__r, _M_data(), __pos); if (__s && __len2) this->_S_copy(__r + __pos, __s, __len2); if (__how_much) this->_S_copy(__r + __pos + __len2, _M_data() + __pos + __len1, __how_much); _M_dispose(); _M_data(__r); _M_capacity(__new_capacity); } template constexpr void basic_string<_CharT, _Traits, _Alloc>:: _M_erase(size_type __pos, size_type __n) { const size_type __how_much = length() - __pos - __n; if (__how_much && __n) this->_S_move(_M_data() + __pos, _M_data() + __pos + __n, __how_much); _M_set_length(length() - __n); } template constexpr void basic_string<_CharT, _Traits, _Alloc>:: reserve() { if (_M_is_local()) return; const size_type __length = length(); const size_type __capacity = _M_allocated_capacity; if (__length <= size_type(_S_local_capacity)) { _M_init_local_buf(); this->_S_copy(_M_local_buf, _M_data(), __length + 1); _M_destroy(__capacity); _M_data(_M_local_data()); } else if (__length < __capacity) try { pointer __tmp = _S_allocate(_M_get_allocator(), __length + 1); this->_S_copy(__tmp, _M_data(), __length + 1); _M_dispose(); _M_data(__tmp); _M_capacity(__length); } catch (const __cxxabiv1::__forced_unwind&) { throw; } catch (...) { } } template constexpr void basic_string<_CharT, _Traits, _Alloc>:: resize(size_type __n, _CharT __c) { const size_type __size = this->size(); if (__size < __n) this->append(__n - __size, __c); else if (__n < __size) this->_M_set_length(__n); } template constexpr basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: _M_append(const _CharT* __s, size_type __n) { const size_type __len = __n + this->size(); if (__len <= this->capacity()) { if (__n) this->_S_copy(this->_M_data() + this->size(), __s, __n); } else this->_M_mutate(this->size(), size_type(0), __s, __n); this->_M_set_length(__len); return *this; } template template constexpr basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, _InputIterator __k1, _InputIterator __k2, std::__false_type) { const basic_string __s(__k1, __k2, this->get_allocator()); const size_type __n1 = __i2 - __i1; return _M_replace(__i1 - begin(), __n1, __s._M_data(), __s.size()); } template constexpr basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, _CharT __c) { _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); const size_type __old_size = this->size(); const size_type __new_size = __old_size + __n2 - __n1; if (__new_size <= this->capacity()) { pointer __p = this->_M_data() + __pos1; const size_type __how_much = __old_size - __pos1 - __n1; if (__how_much && __n1 != __n2) this->_S_move(__p + __n2, __p + __n1, __how_much); } else this->_M_mutate(__pos1, __n1, 0, __n2); if (__n2) this->_S_assign(this->_M_data() + __pos1, __n2, __c); this->_M_set_length(__new_size); return *this; } template __attribute__((__noinline__, __noclone__, __cold__)) void basic_string<_CharT, _Traits, _Alloc>:: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, const size_type __len2, const size_type __how_much) { if (__len2 && __len2 <= __len1) this->_S_move(__p, __s, __len2); if (__how_much && __len1 != __len2) this->_S_move(__p + __len2, __p + __len1, __how_much); if (__len2 > __len1) { if (__s + __len2 <= __p + __len1) this->_S_move(__p, __s, __len2); else if (__s >= __p + __len1) { const size_type __poff = (__s - __p) + (__len2 - __len1); this->_S_copy(__p, __p + __poff, __len2); } else { const size_type __nleft = (__p + __len1) - __s; this->_S_move(__p, __s, __nleft); this->_S_copy(__p + __nleft, __p + __len2, __len2 - __nleft); } } } template constexpr basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, const size_type __len2) { _M_check_length(__len1, __len2, "basic_string::_M_replace"); const size_type __old_size = this->size(); const size_type __new_size = __old_size + __len2 - __len1; if (__new_size <= this->capacity()) { pointer __p = this->_M_data() + __pos; const size_type __how_much = __old_size - __pos - __len1; if (std::is_constant_evaluated()) { auto __newp = _S_allocate(_M_get_allocator(), __new_size); _S_copy(__newp, this->_M_data(), __pos); _S_copy(__newp + __pos, __s, __len2); _S_copy(__newp + __pos + __len2, __p + __len1, __how_much); _S_copy(this->_M_data(), __newp, __new_size); this->_M_get_allocator().deallocate(__newp, __new_size); } else if (__builtin_expect(_M_disjunct(__s), true)) { if (__how_much && __len1 != __len2) this->_S_move(__p + __len2, __p + __len1, __how_much); if (__len2) this->_S_copy(__p, __s, __len2); } else _M_replace_cold(__p, __len1, __s, __len2, __how_much); } else this->_M_mutate(__pos, __len1, __s, __len2); this->_M_set_length(__new_size); return *this; } template constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: copy(_CharT* __s, size_type __n, size_type __pos) const { _M_check(__pos, "basic_string::copy"); __n = _M_limit(__pos, __n); ; if (__n) _S_copy(__s, _M_data() + __pos, __n); return __n; } template template [[__gnu__::__always_inline__]] constexpr void basic_string<_CharT, _Traits, _Alloc>:: __resize_and_overwrite(const size_type __n, _Operation __op) { resize_and_overwrite<_Operation&>(__n, __op); } template template constexpr void basic_string<_CharT, _Traits, _Alloc>:: resize_and_overwrite(const size_type __n, _Operation __op) { reserve(__n); _CharT* const __p = _M_data(); if (std::__is_constant_evaluated() && __n > size()) traits_type::assign(__p + size(), __n - size(), _CharT()); struct _Terminator { constexpr ~_Terminator() { _M_this->_M_set_length(_M_r); } basic_string* _M_this; size_type _M_r; }; _Terminator __term{this, 0}; auto __r = std::move(__op)(__p + 0, __n + 0); static_assert(ranges::__detail::__is_integer_like); ; __term._M_r = size_type(__r); if (__term._M_r > __n) __builtin_unreachable(); } # 654 "/usr/include/c++/15/bits/basic_string.tcc" 3 template constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find(const _CharT* __s, size_type __pos, size_type __n) const noexcept { ; const size_type __size = this->size(); if (__n == 0) return __pos <= __size ? __pos : npos; if (__pos >= __size) return npos; const _CharT __elem0 = __s[0]; const _CharT* const __data = data(); const _CharT* __first = __data + __pos; const _CharT* const __last = __data + __size; size_type __len = __size - __pos; while (__len >= __n) { __first = traits_type::find(__first, __len - __n + 1, __elem0); if (!__first) return npos; if (traits_type::compare(__first, __s, __n) == 0) return __first - __data; __len = __last - ++__first; } return npos; } template constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find(_CharT __c, size_type __pos) const noexcept { size_type __ret = npos; const size_type __size = this->size(); if (__pos < __size) { const _CharT* __data = _M_data(); const size_type __n = __size - __pos; const _CharT* __p = traits_type::find(__data + __pos, __n, __c); if (__p) __ret = __p - __data; } return __ret; } template constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: rfind(const _CharT* __s, size_type __pos, size_type __n) const noexcept { ; const size_type __size = this->size(); if (__n <= __size) { __pos = std::min(size_type(__size - __n), __pos); const _CharT* __data = _M_data(); do { if (traits_type::compare(__data + __pos, __s, __n) == 0) return __pos; } while (__pos-- > 0); } return npos; } template constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: rfind(_CharT __c, size_type __pos) const noexcept { size_type __size = this->size(); if (__size) { if (--__size > __pos) __size = __pos; for (++__size; __size-- > 0; ) if (traits_type::eq(_M_data()[__size], __c)) return __size; } return npos; } template constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept { ; for (; __n && __pos < this->size(); ++__pos) { const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]); if (__p) return __pos; } return npos; } template constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept { ; size_type __size = this->size(); if (__size && __n) { if (--__size > __pos) __size = __pos; do { if (traits_type::find(__s, __n, _M_data()[__size])) return __size; } while (__size-- != 0); } return npos; } template constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept { ; for (; __pos < this->size(); ++__pos) if (!traits_type::find(__s, __n, _M_data()[__pos])) return __pos; return npos; } template constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_first_not_of(_CharT __c, size_type __pos) const noexcept { for (; __pos < this->size(); ++__pos) if (!traits_type::eq(_M_data()[__pos], __c)) return __pos; return npos; } template constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept { ; size_type __size = this->size(); if (__size) { if (--__size > __pos) __size = __pos; do { if (!traits_type::find(__s, __n, _M_data()[__size])) return __size; } while (__size--); } return npos; } template constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_last_not_of(_CharT __c, size_type __pos) const noexcept { size_type __size = this->size(); if (__size) { if (--__size > __pos) __size = __pos; do { if (!traits_type::eq(_M_data()[__size], __c)) return __size; } while (__size--); } return npos; } template basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __in, basic_string<_CharT, _Traits, _Alloc>& __str) { typedef basic_istream<_CharT, _Traits> __istream_type; typedef basic_string<_CharT, _Traits, _Alloc> __string_type; typedef typename __istream_type::ios_base __ios_base; typedef typename __istream_type::int_type __int_type; typedef typename __string_type::size_type __size_type; typedef ctype<_CharT> __ctype_type; typedef typename __ctype_type::ctype_base __ctype_base; __size_type __extracted = 0; typename __ios_base::iostate __err = __ios_base::goodbit; typename __istream_type::sentry __cerb(__in, false); if (__cerb) { try { __str.erase(); _CharT __buf[128]; __size_type __len = 0; const streamsize __w = __in.width(); const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) : __str.max_size(); const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); const __int_type __eof = _Traits::eof(); __int_type __c = __in.rdbuf()->sgetc(); while (__extracted < __n && !_Traits::eq_int_type(__c, __eof) && !__ct.is(__ctype_base::space, _Traits::to_char_type(__c))) { if (__len == sizeof(__buf) / sizeof(_CharT)) { __str.append(__buf, sizeof(__buf) / sizeof(_CharT)); __len = 0; } __buf[__len++] = _Traits::to_char_type(__c); ++__extracted; __c = __in.rdbuf()->snextc(); } __str.append(__buf, __len); if (__extracted < __n && _Traits::eq_int_type(__c, __eof)) __err |= __ios_base::eofbit; __in.width(0); } catch(__cxxabiv1::__forced_unwind&) { __in._M_setstate(__ios_base::badbit); throw; } catch(...) { __in._M_setstate(__ios_base::badbit); } } if (!__extracted) __err |= __ios_base::failbit; if (__err) __in.setstate(__err); return __in; } template basic_istream<_CharT, _Traits>& getline(basic_istream<_CharT, _Traits>& __in, basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) { typedef basic_istream<_CharT, _Traits> __istream_type; typedef basic_string<_CharT, _Traits, _Alloc> __string_type; typedef typename __istream_type::ios_base __ios_base; typedef typename __istream_type::int_type __int_type; typedef typename __string_type::size_type __size_type; __size_type __extracted = 0; const __size_type __n = __str.max_size(); typename __ios_base::iostate __err = __ios_base::goodbit; typename __istream_type::sentry __cerb(__in, true); if (__cerb) { try { __str.erase(); const __int_type __idelim = _Traits::to_int_type(__delim); const __int_type __eof = _Traits::eof(); __int_type __c = __in.rdbuf()->sgetc(); while (__extracted < __n && !_Traits::eq_int_type(__c, __eof) && !_Traits::eq_int_type(__c, __idelim)) { __str += _Traits::to_char_type(__c); ++__extracted; __c = __in.rdbuf()->snextc(); } if (_Traits::eq_int_type(__c, __eof)) __err |= __ios_base::eofbit; else if (_Traits::eq_int_type(__c, __idelim)) { ++__extracted; __in.rdbuf()->sbumpc(); } else __err |= __ios_base::failbit; } catch(__cxxabiv1::__forced_unwind&) { __in._M_setstate(__ios_base::badbit); throw; } catch(...) { __in._M_setstate(__ios_base::badbit); } } if (!__extracted) __err |= __ios_base::failbit; if (__err) __in.setstate(__err); return __in; } # 1016 "/usr/include/c++/15/bits/basic_string.tcc" 3 extern template void basic_string::_M_replace_cold(char *, size_type, const char*, const size_type, const size_type); extern template basic_istream& operator>>(basic_istream&, string&); extern template basic_ostream& operator<<(basic_ostream&, const string&); extern template basic_istream& getline(basic_istream&, string&, char); extern template basic_istream& getline(basic_istream&, string&); # 1042 "/usr/include/c++/15/bits/basic_string.tcc" 3 extern template void basic_string::_M_replace_cold(wchar_t*, size_type, const wchar_t*, const size_type, const size_type); extern template basic_istream& operator>>(basic_istream&, wstring&); extern template basic_ostream& operator<<(basic_ostream&, const wstring&); extern template basic_istream& getline(basic_istream&, wstring&, wchar_t); extern template basic_istream& getline(basic_istream&, wstring&); } #pragma GCC diagnostic pop # 58 "/usr/include/c++/15/string" 2 3 # 69 "/usr/include/c++/15/string" 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 70 "/usr/include/c++/15/string" 2 3 # 1 "/usr/include/c++/15/bits/memory_resource.h" 1 3 # 43 "/usr/include/c++/15/bits/memory_resource.h" 3 # 1 "/usr/include/c++/15/bits/uses_allocator_args.h" 1 3 # 37 "/usr/include/c++/15/bits/uses_allocator_args.h" 3 # 1 "/usr/include/c++/15/bits/version.h" 1 3 # 38 "/usr/include/c++/15/bits/uses_allocator_args.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template concept _Std_pair = __is_pair>; template constexpr auto uses_allocator_construction_args(const _Alloc& __a, _Args&&... __args) noexcept requires (! _Std_pair<_Tp>) { if constexpr (uses_allocator_v, _Alloc>) { if constexpr (is_constructible_v<_Tp, allocator_arg_t, const _Alloc&, _Args...>) { return tuple( allocator_arg, __a, std::forward<_Args>(__args)...); } else { static_assert(is_constructible_v<_Tp, _Args..., const _Alloc&>, "construction with an allocator must be possible" " if uses_allocator is true"); return tuple<_Args&&..., const _Alloc&>( std::forward<_Args>(__args)..., __a); } } else { static_assert(is_constructible_v<_Tp, _Args...>); return tuple<_Args&&...>(std::forward<_Args>(__args)...); } } template<_Std_pair _Tp, typename _Alloc, typename _Tuple1, typename _Tuple2> constexpr auto uses_allocator_construction_args(const _Alloc& __a, piecewise_construct_t, _Tuple1&& __x, _Tuple2&& __y) noexcept; template<_Std_pair _Tp, typename _Alloc> constexpr auto uses_allocator_construction_args(const _Alloc&) noexcept; template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc&, _Up&&, _Vp&&) noexcept; template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc&, const pair<_Up, _Vp>&) noexcept; template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc&, pair<_Up, _Vp>&&) noexcept; template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc&, pair<_Up, _Vp>&) noexcept; template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc&, const pair<_Up, _Vp>&&) noexcept; template<_Std_pair _Tp, typename _Alloc, typename _Tuple1, typename _Tuple2> constexpr auto uses_allocator_construction_args(const _Alloc& __a, piecewise_construct_t, _Tuple1&& __x, _Tuple2&& __y) noexcept { using _Tp1 = typename _Tp::first_type; using _Tp2 = typename _Tp::second_type; return std::make_tuple(piecewise_construct, std::apply([&__a](auto&&... __args1) { return std::uses_allocator_construction_args<_Tp1>( __a, std::forward(__args1)...); }, std::forward<_Tuple1>(__x)), std::apply([&__a](auto&&... __args2) { return std::uses_allocator_construction_args<_Tp2>( __a, std::forward(__args2)...); }, std::forward<_Tuple2>(__y))); } template<_Std_pair _Tp, typename _Alloc> constexpr auto uses_allocator_construction_args(const _Alloc& __a) noexcept { using _Tp1 = typename _Tp::first_type; using _Tp2 = typename _Tp::second_type; return std::make_tuple(piecewise_construct, std::uses_allocator_construction_args<_Tp1>(__a), std::uses_allocator_construction_args<_Tp2>(__a)); } template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc& __a, _Up&& __u, _Vp&& __v) noexcept { using _Tp1 = typename _Tp::first_type; using _Tp2 = typename _Tp::second_type; return std::make_tuple(piecewise_construct, std::uses_allocator_construction_args<_Tp1>(__a, std::forward<_Up>(__u)), std::uses_allocator_construction_args<_Tp2>(__a, std::forward<_Vp>(__v))); } template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc& __a, const pair<_Up, _Vp>& __pr) noexcept { using _Tp1 = typename _Tp::first_type; using _Tp2 = typename _Tp::second_type; return std::make_tuple(piecewise_construct, std::uses_allocator_construction_args<_Tp1>(__a, __pr.first), std::uses_allocator_construction_args<_Tp2>(__a, __pr.second)); } template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc& __a, pair<_Up, _Vp>&& __pr) noexcept { using _Tp1 = typename _Tp::first_type; using _Tp2 = typename _Tp::second_type; return std::make_tuple(piecewise_construct, std::uses_allocator_construction_args<_Tp1>(__a, std::get<0>(std::move(__pr))), std::uses_allocator_construction_args<_Tp2>(__a, std::get<1>(std::move(__pr)))); } template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc& __a, pair<_Up, _Vp>& __pr) noexcept { using _Tp1 = typename _Tp::first_type; using _Tp2 = typename _Tp::second_type; return std::make_tuple(piecewise_construct, std::uses_allocator_construction_args<_Tp1>(__a, __pr.first), std::uses_allocator_construction_args<_Tp2>(__a, __pr.second)); } template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc& __a, const pair<_Up, _Vp>&& __pr) noexcept { using _Tp1 = typename _Tp::first_type; using _Tp2 = typename _Tp::second_type; return std::make_tuple(piecewise_construct, std::uses_allocator_construction_args<_Tp1>(__a, std::get<0>(std::move(__pr))), std::uses_allocator_construction_args<_Tp2>(__a, std::get<1>(std::move(__pr)))); } template constexpr _Tp make_obj_using_allocator(const _Alloc& __a, _Args&&... __args) { return std::make_from_tuple<_Tp>( std::uses_allocator_construction_args<_Tp>(__a, std::forward<_Args>(__args)...)); } template constexpr _Tp* uninitialized_construct_using_allocator(_Tp* __p, const _Alloc& __a, _Args&&... __args) { return std::apply([&](auto&&... __xs) { return std::construct_at(__p, std::forward(__xs)...); }, std::uses_allocator_construction_args<_Tp>(__a, std::forward<_Args>(__args)...)); } } # 44 "/usr/include/c++/15/bits/memory_resource.h" 2 3 # 52 "/usr/include/c++/15/bits/memory_resource.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace pmr { class memory_resource { static constexpr size_t _S_max_align = alignof(max_align_t); public: memory_resource() = default; memory_resource(const memory_resource&) = default; virtual ~memory_resource(); memory_resource& operator=(const memory_resource&) = default; [[nodiscard]] void* allocate(size_t __bytes, size_t __alignment = _S_max_align) __attribute__((__returns_nonnull__,__alloc_size__(2),__alloc_align__(3))) { return ::operator new(__bytes, do_allocate(__bytes, __alignment)); } void deallocate(void* __p, size_t __bytes, size_t __alignment = _S_max_align) __attribute__((__nonnull__)) { return do_deallocate(__p, __bytes, __alignment); } [[nodiscard]] bool is_equal(const memory_resource& __other) const noexcept { return do_is_equal(__other); } private: virtual void* do_allocate(size_t __bytes, size_t __alignment) = 0; virtual void do_deallocate(void* __p, size_t __bytes, size_t __alignment) = 0; virtual bool do_is_equal(const memory_resource& __other) const noexcept = 0; }; [[nodiscard]] inline bool operator==(const memory_resource& __a, const memory_resource& __b) noexcept { return &__a == &__b || __a.is_equal(__b); } # 121 "/usr/include/c++/15/bits/memory_resource.h" 3 template class polymorphic_allocator { template struct __not_pair { using type = void; }; template struct __not_pair> { }; public: using value_type = _Tp; polymorphic_allocator() noexcept { extern memory_resource* get_default_resource() noexcept __attribute__((__returns_nonnull__)); _M_resource = get_default_resource(); } polymorphic_allocator(memory_resource* __r) noexcept __attribute__((__nonnull__)) : _M_resource(__r) { ; } polymorphic_allocator(const polymorphic_allocator& __other) = default; template polymorphic_allocator(const polymorphic_allocator<_Up>& __x) noexcept : _M_resource(__x.resource()) { } polymorphic_allocator& operator=(const polymorphic_allocator&) = delete; [[nodiscard]] _Tp* allocate(size_t __n) __attribute__((__returns_nonnull__)) { if ((__gnu_cxx::__int_traits::__max / sizeof(_Tp)) < __n) std::__throw_bad_array_new_length(); return static_cast<_Tp*>(_M_resource->allocate(__n * sizeof(_Tp), alignof(_Tp))); } void deallocate(_Tp* __p, size_t __n) noexcept __attribute__((__nonnull__)) { _M_resource->deallocate(__p, __n * sizeof(_Tp), alignof(_Tp)); } [[nodiscard]] void* allocate_bytes(size_t __nbytes, size_t __alignment = alignof(max_align_t)) { return _M_resource->allocate(__nbytes, __alignment); } void deallocate_bytes(void* __p, size_t __nbytes, size_t __alignment = alignof(max_align_t)) { _M_resource->deallocate(__p, __nbytes, __alignment); } template [[nodiscard]] _Up* allocate_object(size_t __n = 1) { if ((__gnu_cxx::__int_traits::__max / sizeof(_Up)) < __n) std::__throw_bad_array_new_length(); return static_cast<_Up*>(allocate_bytes(__n * sizeof(_Up), alignof(_Up))); } template void deallocate_object(_Up* __p, size_t __n = 1) { deallocate_bytes(__p, __n * sizeof(_Up), alignof(_Up)); } template [[nodiscard]] _Up* new_object(_CtorArgs&&... __ctor_args) { _Up* __p = allocate_object<_Up>(); try { construct(__p, std::forward<_CtorArgs>(__ctor_args)...); } catch(...) { deallocate_object(__p); throw; } return __p; } template void delete_object(_Up* __p) { __p->~_Up(); deallocate_object(__p); } # 299 "/usr/include/c++/15/bits/memory_resource.h" 3 template __attribute__((__nonnull__)) void construct(_Tp1* __p, _Args&&... __args) { std::uninitialized_construct_using_allocator(__p, *this, std::forward<_Args>(__args)...); } template __attribute__((__nonnull__)) void destroy(_Up* __p) { __p->~_Up(); } polymorphic_allocator select_on_container_copy_construction() const noexcept { return polymorphic_allocator(); } memory_resource* resource() const noexcept __attribute__((__returns_nonnull__)) { return _M_resource; } [[nodiscard]] friend bool operator==(const polymorphic_allocator& __a, const polymorphic_allocator& __b) noexcept { return *__a.resource() == *__b.resource(); } # 340 "/usr/include/c++/15/bits/memory_resource.h" 3 private: # 367 "/usr/include/c++/15/bits/memory_resource.h" 3 memory_resource* _M_resource; }; template [[nodiscard]] inline bool operator==(const polymorphic_allocator<_Tp1>& __a, const polymorphic_allocator<_Tp2>& __b) noexcept { return *__a.resource() == *__b.resource(); } # 386 "/usr/include/c++/15/bits/memory_resource.h" 3 } template struct allocator_traits; template struct allocator_traits> { using allocator_type = pmr::polymorphic_allocator<_Tp>; using value_type = _Tp; using pointer = _Tp*; using const_pointer = const _Tp*; using void_pointer = void*; using const_void_pointer = const void*; using difference_type = std::ptrdiff_t; using size_type = std::size_t; using propagate_on_container_copy_assignment = false_type; using propagate_on_container_move_assignment = false_type; using propagate_on_container_swap = false_type; static allocator_type select_on_container_copy_construction(const allocator_type&) noexcept { return allocator_type(); } using is_always_equal = false_type; template using rebind_alloc = pmr::polymorphic_allocator<_Up>; template using rebind_traits = allocator_traits>; # 452 "/usr/include/c++/15/bits/memory_resource.h" 3 [[nodiscard]] static pointer allocate(allocator_type& __a, size_type __n) { return __a.allocate(__n); } # 467 "/usr/include/c++/15/bits/memory_resource.h" 3 [[nodiscard]] static pointer allocate(allocator_type& __a, size_type __n, const_void_pointer) { return __a.allocate(__n); } # 479 "/usr/include/c++/15/bits/memory_resource.h" 3 static void deallocate(allocator_type& __a, pointer __p, size_type __n) { __a.deallocate(__p, __n); } # 494 "/usr/include/c++/15/bits/memory_resource.h" 3 template static void construct(allocator_type& __a, _Up* __p, _Args&&... __args) { __a.construct(__p, std::forward<_Args>(__args)...); } # 506 "/usr/include/c++/15/bits/memory_resource.h" 3 template static constexpr void destroy(allocator_type&, _Up* __p) noexcept(is_nothrow_destructible<_Up>::value) { __p->~_Up(); } static constexpr size_type max_size(const allocator_type&) noexcept { return size_t(-1) / sizeof(value_type); } }; } # 73 "/usr/include/c++/15/string" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace pmr { template> using basic_string = std::basic_string<_CharT, _Traits, polymorphic_allocator<_CharT>>; using string = basic_string; using u8string = basic_string; using u16string = basic_string; using u32string = basic_string; using wstring = basic_string; } } namespace std __attribute__ ((__visibility__ ("default"))) { template constexpr inline typename basic_string<_CharT, _Traits, _Alloc>::size_type erase_if(basic_string<_CharT, _Traits, _Alloc>& __cont, _Predicate __pred) { using namespace __gnu_cxx; const auto __osz = __cont.size(); const auto __end = __cont.end(); auto __removed = std::__remove_if(__cont.begin(), __end, __ops::__pred_iter(std::ref(__pred))); __cont.erase(__removed, __end); return __osz - __cont.size(); } template constexpr inline typename basic_string<_CharT, _Traits, _Alloc>::size_type erase(basic_string<_CharT, _Traits, _Alloc>& __cont, const _Up& __value) { using namespace __gnu_cxx; const auto __osz = __cont.size(); const auto __end = __cont.end(); auto __removed = std::__remove_if(__cont.begin(), __end, __ops::__iter_equals_val(__value)); __cont.erase(__removed, __end); return __osz - __cont.size(); } } # 42 "/usr/include/c++/15/stdexcept" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct __cow_string { union { const char* _M_p; char _M_bytes[sizeof(const char*)]; }; __cow_string(); __cow_string(const std::string&); __cow_string(const char*, size_t); __cow_string(const __cow_string&) noexcept; __cow_string& operator=(const __cow_string&) noexcept; ~__cow_string(); __cow_string(__cow_string&&) noexcept; __cow_string& operator=(__cow_string&&) noexcept; }; typedef basic_string __sso_string; # 115 "/usr/include/c++/15/stdexcept" 3 class logic_error : public exception { __cow_string _M_msg; public: explicit logic_error(const string& __arg) ; explicit logic_error(const char*) ; logic_error(logic_error&&) noexcept; logic_error& operator=(logic_error&&) noexcept; logic_error(const logic_error&) noexcept; logic_error& operator=(const logic_error&) noexcept; virtual ~logic_error() noexcept; virtual const char* what() const noexcept; }; class domain_error : public logic_error { public: explicit domain_error(const string& __arg) ; explicit domain_error(const char*) ; domain_error(const domain_error&) = default; domain_error& operator=(const domain_error&) = default; domain_error(domain_error&&) = default; domain_error& operator=(domain_error&&) = default; virtual ~domain_error() noexcept; }; class invalid_argument : public logic_error { public: explicit invalid_argument(const string& __arg) ; explicit invalid_argument(const char*) ; invalid_argument(const invalid_argument&) = default; invalid_argument& operator=(const invalid_argument&) = default; invalid_argument(invalid_argument&&) = default; invalid_argument& operator=(invalid_argument&&) = default; virtual ~invalid_argument() noexcept; }; class length_error : public logic_error { public: explicit length_error(const string& __arg) ; explicit length_error(const char*) ; length_error(const length_error&) = default; length_error& operator=(const length_error&) = default; length_error(length_error&&) = default; length_error& operator=(length_error&&) = default; virtual ~length_error() noexcept; }; class out_of_range : public logic_error { public: explicit out_of_range(const string& __arg) ; explicit out_of_range(const char*) ; out_of_range(const out_of_range&) = default; out_of_range& operator=(const out_of_range&) = default; out_of_range(out_of_range&&) = default; out_of_range& operator=(out_of_range&&) = default; virtual ~out_of_range() noexcept; }; class runtime_error : public exception { __cow_string _M_msg; public: explicit runtime_error(const string& __arg) ; explicit runtime_error(const char*) ; runtime_error(runtime_error&&) noexcept; runtime_error& operator=(runtime_error&&) noexcept; runtime_error(const runtime_error&) noexcept; runtime_error& operator=(const runtime_error&) noexcept; virtual ~runtime_error() noexcept; virtual const char* what() const noexcept; }; class range_error : public runtime_error { public: explicit range_error(const string& __arg) ; explicit range_error(const char*) ; range_error(const range_error&) = default; range_error& operator=(const range_error&) = default; range_error(range_error&&) = default; range_error& operator=(range_error&&) = default; virtual ~range_error() noexcept; }; class overflow_error : public runtime_error { public: explicit overflow_error(const string& __arg) ; explicit overflow_error(const char*) ; overflow_error(const overflow_error&) = default; overflow_error& operator=(const overflow_error&) = default; overflow_error(overflow_error&&) = default; overflow_error& operator=(overflow_error&&) = default; virtual ~overflow_error() noexcept; }; class underflow_error : public runtime_error { public: explicit underflow_error(const string& __arg) ; explicit underflow_error(const char*) ; underflow_error(const underflow_error&) = default; underflow_error& operator=(const underflow_error&) = default; underflow_error(underflow_error&&) = default; underflow_error& operator=(underflow_error&&) = default; virtual ~underflow_error() noexcept; }; } # 61 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" 2 # 1 "/usr/include/c++/15/system_error" 1 3 # 43 "/usr/include/c++/15/system_error" 3 # 1 "/usr/include/x86_64-linux-gnu/c++/15/bits/error_constants.h" 1 3 # 36 "/usr/include/x86_64-linux-gnu/c++/15/bits/error_constants.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { enum class errc { address_family_not_supported = 97, address_in_use = 98, address_not_available = 99, already_connected = 106, argument_list_too_long = 7, argument_out_of_domain = 33, bad_address = 14, bad_file_descriptor = 9, bad_message = 74, broken_pipe = 32, connection_aborted = 103, connection_already_in_progress = 114, connection_refused = 111, connection_reset = 104, cross_device_link = 18, destination_address_required = 89, device_or_resource_busy = 16, directory_not_empty = 39, executable_format_error = 8, file_exists = 17, file_too_large = 27, filename_too_long = 36, function_not_supported = 38, host_unreachable = 113, identifier_removed = 43, illegal_byte_sequence = 84, inappropriate_io_control_operation = 25, interrupted = 4, invalid_argument = 22, invalid_seek = 29, io_error = 5, is_a_directory = 21, message_size = 90, network_down = 100, network_reset = 102, network_unreachable = 101, no_buffer_space = 105, no_child_process = 10, no_link = 67, no_lock_available = 37, no_message_available = 61, no_message = 42, no_protocol_option = 92, no_space_on_device = 28, no_stream_resources = 63, no_such_device_or_address = 6, no_such_device = 19, no_such_file_or_directory = 2, no_such_process = 3, not_a_directory = 20, not_a_socket = 88, not_a_stream = 60, not_connected = 107, not_enough_memory = 12, not_supported = 95, operation_canceled = 125, operation_in_progress = 115, operation_not_permitted = 1, operation_not_supported = 95, operation_would_block = 11, owner_dead = 130, permission_denied = 13, protocol_error = 71, protocol_not_supported = 93, read_only_file_system = 30, resource_deadlock_would_occur = 35, resource_unavailable_try_again = 11, result_out_of_range = 34, state_not_recoverable = 131, stream_timeout = 62, text_file_busy = 26, timed_out = 110, too_many_files_open_in_system = 23, too_many_files_open = 24, too_many_links = 31, too_many_symbolic_link_levels = 40, value_too_large = 75, wrong_protocol_type = 91 }; } # 44 "/usr/include/c++/15/system_error" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { class error_code; class error_condition; class system_error; template struct is_error_code_enum : public false_type { }; template struct is_error_condition_enum : public false_type { }; template<> struct is_error_condition_enum : public true_type { }; template inline constexpr bool is_error_code_enum_v = is_error_code_enum<_Tp>::value; template inline constexpr bool is_error_condition_enum_v = is_error_condition_enum<_Tp>::value; inline namespace _V2 { # 108 "/usr/include/c++/15/system_error" 3 class error_category { public: constexpr error_category() noexcept = default; virtual ~error_category(); error_category(const error_category&) = delete; error_category& operator=(const error_category&) = delete; virtual const char* name() const noexcept = 0; private: __attribute ((__abi_tag__ ("cxx11"))) virtual __cow_string _M_message(int) const; public: __attribute ((__abi_tag__ ("cxx11"))) virtual string message(int) const = 0; # 146 "/usr/include/c++/15/system_error" 3 public: virtual error_condition default_error_condition(int __i) const noexcept; virtual bool equivalent(int __i, const error_condition& __cond) const noexcept; virtual bool equivalent(const error_code& __code, int __i) const noexcept; [[__nodiscard__]] bool operator==(const error_category& __other) const noexcept { return this == &__other; } [[nodiscard]] strong_ordering operator<=>(const error_category& __rhs) const noexcept { return std::compare_three_way()(this, &__rhs); } # 180 "/usr/include/c++/15/system_error" 3 }; [[__nodiscard__, __gnu__::__const__]] const error_category& generic_category() noexcept; [[__nodiscard__, __gnu__::__const__]] const error_category& system_category() noexcept; } namespace __adl_only { void make_error_code() = delete; void make_error_condition() = delete; } # 225 "/usr/include/c++/15/system_error" 3 class error_code { template using _Check = __enable_if_t::value>; public: error_code() noexcept : _M_value(0), _M_cat(&system_category()) { } error_code(int __v, const error_category& __cat) noexcept : _M_value(__v), _M_cat(&__cat) { } template> error_code(_ErrorCodeEnum __e) noexcept { using __adl_only::make_error_code; *this = make_error_code(__e); } error_code(const error_code&) = default; error_code& operator=(const error_code&) = default; void assign(int __v, const error_category& __cat) noexcept { _M_value = __v; _M_cat = &__cat; } void clear() noexcept { assign(0, system_category()); } [[__nodiscard__]] int value() const noexcept { return _M_value; } [[__nodiscard__]] const error_category& category() const noexcept { return *_M_cat; } error_condition default_error_condition() const noexcept; __attribute ((__abi_tag__ ("cxx11"))) string message() const { return category().message(value()); } [[__nodiscard__]] explicit operator bool() const noexcept { return _M_value != 0; } private: int _M_value; const error_category* _M_cat; }; # 302 "/usr/include/c++/15/system_error" 3 [[__nodiscard__]] inline error_code make_error_code(errc __e) noexcept { return error_code(static_cast(__e), generic_category()); } # 316 "/usr/include/c++/15/system_error" 3 [[nodiscard]] inline strong_ordering operator<=>(const error_code& __lhs, const error_code& __rhs) noexcept { if (auto __c = __lhs.category() <=> __rhs.category(); __c != 0) return __c; return __lhs.value() <=> __rhs.value(); } # 339 "/usr/include/c++/15/system_error" 3 template basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) { return (__os << __e.category().name() << ':' << __e.value()); } # 356 "/usr/include/c++/15/system_error" 3 class error_condition { template using _Check = __enable_if_t::value>; public: error_condition() noexcept : _M_value(0), _M_cat(&generic_category()) { } error_condition(int __v, const error_category& __cat) noexcept : _M_value(__v), _M_cat(&__cat) { } template> error_condition(_ErrorConditionEnum __e) noexcept { using __adl_only::make_error_condition; *this = make_error_condition(__e); } error_condition(const error_condition&) = default; error_condition& operator=(const error_condition&) = default; void assign(int __v, const error_category& __cat) noexcept { _M_value = __v; _M_cat = &__cat; } void clear() noexcept { assign(0, generic_category()); } [[__nodiscard__]] int value() const noexcept { return _M_value; } [[__nodiscard__]] const error_category& category() const noexcept { return *_M_cat; } __attribute ((__abi_tag__ ("cxx11"))) string message() const { return category().message(value()); } [[__nodiscard__]] explicit operator bool() const noexcept { return _M_value != 0; } private: int _M_value; const error_category* _M_cat; }; # 435 "/usr/include/c++/15/system_error" 3 [[__nodiscard__]] inline error_condition make_error_condition(errc __e) noexcept { return error_condition(static_cast(__e), generic_category()); } # 449 "/usr/include/c++/15/system_error" 3 [[__nodiscard__]] inline bool operator==(const error_code& __lhs, const error_code& __rhs) noexcept { return __lhs.category() == __rhs.category() && __lhs.value() == __rhs.value(); } # 465 "/usr/include/c++/15/system_error" 3 [[__nodiscard__]] inline bool operator==(const error_code& __lhs, const error_condition& __rhs) noexcept { return __lhs.category().equivalent(__lhs.value(), __rhs) || __rhs.category().equivalent(__lhs, __rhs.value()); } # 480 "/usr/include/c++/15/system_error" 3 [[__nodiscard__]] inline bool operator==(const error_condition& __lhs, const error_condition& __rhs) noexcept { return __lhs.category() == __rhs.category() && __lhs.value() == __rhs.value(); } # 498 "/usr/include/c++/15/system_error" 3 [[nodiscard]] inline strong_ordering operator<=>(const error_condition& __lhs, const error_condition& __rhs) noexcept { if (auto __c = __lhs.category() <=> __rhs.category(); __c != 0) return __c; return __lhs.value() <=> __rhs.value(); } # 558 "/usr/include/c++/15/system_error" 3 class system_error : public std::runtime_error { private: error_code _M_code; public: system_error(error_code __ec = error_code()) : runtime_error(__ec.message()), _M_code(__ec) { } system_error(error_code __ec, const string& __what) : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } system_error(error_code __ec, const char* __what) : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } system_error(int __v, const error_category& __ecat, const char* __what) : system_error(error_code(__v, __ecat), __what) { } system_error(int __v, const error_category& __ecat) : runtime_error(error_code(__v, __ecat).message()), _M_code(__v, __ecat) { } system_error(int __v, const error_category& __ecat, const string& __what) : runtime_error(__what + (": " + error_code(__v, __ecat).message())), _M_code(__v, __ecat) { } system_error (const system_error &) = default; system_error &operator= (const system_error &) = default; virtual ~system_error() noexcept; const error_code& code() const noexcept { return _M_code; } }; } namespace std __attribute__ ((__visibility__ ("default"))) { template<> struct hash : public __hash_base { size_t operator()(const error_code& __e) const noexcept { const size_t __tmp = std::_Hash_impl::hash(__e.value()); return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); } }; template<> struct hash : public __hash_base { size_t operator()(const error_condition& __e) const noexcept { const size_t __tmp = std::_Hash_impl::hash(__e.value()); return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); } }; } # 63 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" 2 # 151 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" # 151 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" namespace std { template struct iterator_traits> { using iterator_category = output_iterator_tag; using value_type = T; using difference_type = decltype(static_cast(nullptr) - static_cast(nullptr)); using pointer = void; using reference = void; }; } # 184 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" namespace fmt { inline namespace v12 { template struct is_contiguous> : std::true_type {}; namespace detail { # 240 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" constexpr inline void abort_fuzzing_if(bool condition) { ignore_unused(condition); } template using std_string_view = std::basic_string_view; template struct string_literal { static constexpr Char value[sizeof...(C)] = {C...}; constexpr operator basic_string_view() const { return {value, sizeof...(C)}; } }; template = 0> constexpr auto bit_cast(const From& from) -> To { if (is_constant_evaluated()) return std::bit_cast(from); auto to = To(); memcpy(static_cast(&to), &from, sizeof(to)); return to; } inline auto is_big_endian() -> bool { return 1234 == 4321; } class uint128 { private: uint64_t lo_, hi_; public: constexpr uint128(uint64_t hi, uint64_t lo) : lo_(lo), hi_(hi) {} constexpr uint128(uint64_t value = 0) : lo_(value), hi_(0) {} constexpr auto high() const noexcept -> uint64_t { return hi_; } constexpr auto low() const noexcept -> uint64_t { return lo_; } template ::value), int> = 0> constexpr explicit operator T() const { return static_cast(lo_); } friend constexpr auto operator==(const uint128& lhs, const uint128& rhs) -> bool { return lhs.hi_ == rhs.hi_ && lhs.lo_ == rhs.lo_; } friend constexpr auto operator!=(const uint128& lhs, const uint128& rhs) -> bool { return !(lhs == rhs); } friend constexpr auto operator>(const uint128& lhs, const uint128& rhs) -> bool { return lhs.hi_ != rhs.hi_ ? lhs.hi_ > rhs.hi_ : lhs.lo_ > rhs.lo_; } friend constexpr auto operator|(const uint128& lhs, const uint128& rhs) -> uint128 { return {lhs.hi_ | rhs.hi_, lhs.lo_ | rhs.lo_}; } friend constexpr auto operator&(const uint128& lhs, const uint128& rhs) -> uint128 { return {lhs.hi_ & rhs.hi_, lhs.lo_ & rhs.lo_}; } friend constexpr auto operator+(const uint128& lhs, const uint128& rhs) -> uint128 { auto result = uint128(lhs); result += rhs; return result; } friend constexpr auto operator*(const uint128& lhs, uint32_t rhs) -> uint128 { fmt::detail::ignore_unused((lhs.hi_ == 0), ("")); uint64_t hi = (lhs.lo_ >> 32) * rhs; uint64_t lo = (lhs.lo_ & ~uint32_t()) * rhs; uint64_t new_lo = (hi << 32) + lo; return {(hi >> 32) + (new_lo < lo ? 1 : 0), new_lo}; } friend constexpr auto operator-(const uint128& lhs, uint64_t rhs) -> uint128 { return {lhs.hi_ - (lhs.lo_ < rhs ? 1 : 0), lhs.lo_ - rhs}; } constexpr auto operator>>(int shift) const -> uint128 { if (shift == 64) return {0, hi_}; if (shift > 64) return uint128(0, hi_) >> (shift - 64); return {hi_ >> shift, (hi_ << (64 - shift)) | (lo_ >> shift)}; } constexpr auto operator<<(int shift) const -> uint128 { if (shift == 64) return {lo_, 0}; if (shift > 64) return uint128(lo_, 0) << (shift - 64); return {hi_ << shift | (lo_ >> (64 - shift)), (lo_ << shift)}; } constexpr auto operator>>=(int shift) -> uint128& { return *this = *this >> shift; } constexpr void operator+=(uint128 n) { uint64_t new_lo = lo_ + n.lo_; uint64_t new_hi = hi_ + n.hi_ + (new_lo < lo_ ? 1 : 0); fmt::detail::ignore_unused((new_hi >= hi_), ("")); lo_ = new_lo; hi_ = new_hi; } constexpr void operator&=(uint128 n) { lo_ &= n.lo_; hi_ &= n.hi_; } constexpr auto operator+=(uint64_t n) noexcept -> uint128& { if (is_constant_evaluated()) { lo_ += n; hi_ += (lo_ < n ? 1 : 0); return *this; } ullong carry; lo_ = __builtin_addcll(lo_, n, 0, &carry); hi_ += carry; # 393 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" return *this; } }; using uint128_t = conditional_t<1, native_uint128, uint128>; using uintptr_t = ::uintptr_t; template constexpr auto max_value() -> T { return (std::numeric_limits::max)(); } template constexpr auto num_bits() -> int { return std::numeric_limits::digits; } template <> constexpr auto num_bits() -> int { return 128; } template <> constexpr auto num_bits() -> int { return 128; } template <> constexpr auto num_bits() -> int { return 128; } template sizeof(From)), int> = 0> inline auto bit_cast(const From& from) -> To { constexpr auto size = static_cast(sizeof(From) / sizeof(unsigned short)); struct data_t { unsigned short value[static_cast(size)]; } data = bit_cast(from); auto result = To(); if (is_big_endian()) { for (int i = 0; i < size; ++i) result = (result << num_bits()) | data.value[i]; } else { for (int i = size - 1; i >= 0; --i) result = (result << num_bits()) | data.value[i]; } return result; } template constexpr inline auto countl_zero_fallback(UInt n) -> int { int lz = 0; constexpr UInt msb_mask = static_cast(1) << (num_bits() - 1); for (; (n & msb_mask) == 0; n <<= 1) lz++; return lz; } constexpr inline auto countl_zero(uint32_t n) -> int { if (!is_constant_evaluated()) return __builtin_clz(n); return countl_zero_fallback(n); } constexpr inline auto countl_zero(uint64_t n) -> int { if (!is_constant_evaluated()) return __builtin_clzll(n); return countl_zero_fallback(n); } inline __attribute__((always_inline)) void assume(bool condition) { (void)condition; if (!condition) __builtin_unreachable(); } template ::value&& is_contiguous::value), int> = 0 > constexpr inline auto reserve(OutputIt it, size_t n) -> typename OutputIt::value_type* { auto& c = get_container(it); size_t size = c.size(); c.resize(size + n); return &c[size]; } template constexpr inline auto reserve(basic_appender it, size_t n) -> basic_appender { buffer& buf = get_container(it); buf.try_reserve(buf.size() + n); return it; } template constexpr auto reserve(Iterator& it, size_t) -> Iterator& { return it; } template using reserve_iterator = remove_reference_t(), 0))>; template constexpr auto to_pointer(OutputIt, size_t) -> T* { return nullptr; } template constexpr auto to_pointer(T*& ptr, size_t n) -> T* { T* begin = ptr; ptr += n; return begin; } template constexpr auto to_pointer(basic_appender it, size_t n) -> T* { buffer& buf = get_container(it); buf.try_reserve(buf.size() + n); auto size = buf.size(); if (buf.capacity() < size + n) return nullptr; buf.try_resize(size + n); return buf.data() + size; } template ::value&& is_contiguous::value), int> = 0 > inline auto base_iterator(OutputIt it, typename OutputIt::container_type::value_type*) -> OutputIt { return it; } template constexpr auto base_iterator(Iterator, Iterator it) -> Iterator { return it; } template constexpr auto fill_n(OutputIt out, Size count, const T& value) -> OutputIt { for (Size i = 0; i < count; ++i) *out++ = value; return out; } template constexpr auto fill_n(T* out, Size count, char value) -> T* { if (is_constant_evaluated()) return fill_n(out, count, value); static_assert(sizeof(T) == 1, "sizeof(T) must be 1 to use char for initialization"); memset(out, value, to_unsigned(count)); return out + count; } template constexpr auto copy(basic_string_view s, OutputIt out) -> OutputIt { return copy(s.begin(), s.end(), out); } template constexpr __attribute__((noinline)) auto copy_noinline(InputIt begin, InputIt end, OutputIt out) -> OutputIt { return copy(begin, end, out); } # 579 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" constexpr inline auto utf8_decode(const char* s, uint32_t* c, int* e) -> const char* { constexpr int masks[] = {0x00, 0x7f, 0x1f, 0x0f, 0x07}; constexpr uint32_t mins[] = {4194304, 0, 128, 2048, 65536}; constexpr int shiftc[] = {0, 18, 12, 6, 0}; constexpr int shifte[] = {0, 6, 4, 2, 0}; int len = "\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0\0\0\0\0\0\2\2\2\2\3\3\4" [static_cast(*s) >> 3]; const char* next = s + len + !len; using uchar = unsigned char; *c = uint32_t(uchar(s[0]) & masks[len]) << 18; *c |= uint32_t(uchar(s[1]) & 0x3f) << 12; *c |= uint32_t(uchar(s[2]) & 0x3f) << 6; *c |= uint32_t(uchar(s[3]) & 0x3f) << 0; *c >>= shiftc[len]; *e = (*c < mins[len]) << 6; *e |= ((*c >> 11) == 0x1b) << 7; *e |= (*c > 0x10FFFF) << 8; *e |= (uchar(s[1]) & 0xc0) >> 2; *e |= (uchar(s[2]) & 0xc0) >> 4; *e |= uchar(s[3]) >> 6; *e ^= 0x2a; *e >>= shifte[len]; return next; } constexpr inline uint32_t invalid_code_point = ~uint32_t(); template constexpr void for_each_codepoint(string_view s, F f) { auto decode = [f](const char* buf_ptr, const char* ptr) { auto cp = uint32_t(); auto error = 0; auto end = utf8_decode(buf_ptr, &cp, &error); bool result = f(error ? invalid_code_point : cp, string_view(ptr, error ? 1 : to_unsigned(end - buf_ptr))); return result ? (error ? buf_ptr + 1 : end) : nullptr; }; auto p = s.data(); const size_t block_size = 4; if (s.size() >= block_size) { for (auto end = p + s.size() - block_size + 1; p < end;) { p = decode(p, p); if (!p) return; } } auto num_chars_left = to_unsigned(s.data() + s.size() - p); if (num_chars_left == 0) return; if ((15 * 100 + 2)) num_chars_left &= 3; char buf[2 * block_size - 1] = {}; copy(p, p + num_chars_left, buf); const char* buf_ptr = buf; do { auto end = decode(buf_ptr, p); if (!end) return; p += end - buf_ptr; buf_ptr = end; } while (buf_ptr < buf + num_chars_left); } constexpr inline auto display_width_of(uint32_t cp) noexcept -> size_t { return to_unsigned( 1 + (cp >= 0x1100 && (cp <= 0x115f || cp == 0x2329 || cp == 0x232a || (cp >= 0x2e80 && cp <= 0xa4cf && cp != 0x303f) || (cp >= 0xac00 && cp <= 0xd7a3) || (cp >= 0xf900 && cp <= 0xfaff) || (cp >= 0xfe10 && cp <= 0xfe19) || (cp >= 0xfe30 && cp <= 0xfe6f) || (cp >= 0xff00 && cp <= 0xff60) || (cp >= 0xffe0 && cp <= 0xffe6) || (cp >= 0x20000 && cp <= 0x2fffd) || (cp >= 0x30000 && cp <= 0x3fffd) || (cp >= 0x1f300 && cp <= 0x1f64f) || (cp >= 0x1f900 && cp <= 0x1f9ff)))); } template struct is_integral : std::is_integral {}; template <> struct is_integral : std::true_type {}; template <> struct is_integral : std::true_type {}; template using is_signed = std::integral_constant::is_signed || std::is_same::value>; template using is_integer = bool_constant::value && !std::is_same::value && !std::is_same::value && !std::is_same::value>; # 703 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" using float128 = __float128; template using is_float128 = std::is_same; template struct is_floating_point : std::is_floating_point {}; template <> struct is_floating_point : std::true_type {}; template ::value> struct is_fast_float : bool_constant::is_iec559 && sizeof(T) <= sizeof(double)> {}; template struct is_fast_float : std::false_type {}; template using fast_float_t = conditional_t; template using is_double_double = bool_constant::digits == 106>; auto allocate(size_t size) -> void*; template struct allocator : private std::decay { using value_type = T; auto allocate(size_t n) -> T* { fmt::detail::ignore_unused((n <= max_value() / sizeof(T)), ("")); return static_cast(detail::allocate(n * sizeof(T))); } void deallocate(T* p, size_t) { free(p); } constexpr friend auto operator==(allocator, allocator) noexcept -> bool { return true; } constexpr friend auto operator!=(allocator, allocator) noexcept -> bool { return false; } }; template constexpr auto maybe_set_debug_format(Formatter& f, bool set) -> decltype(f.set_debug_format(set)) { f.set_debug_format(set); } template constexpr void maybe_set_debug_format(Formatter&, ...) {} } enum { inline_buffer_size = 500 }; # 776 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" template > class basic_memory_buffer : public detail::buffer { private: T store_[SIZE]; [[no_unique_address]] Allocator alloc_; constexpr void deallocate() { T* data = this->data(); if (data != store_) alloc_.deallocate(data, this->capacity()); } static constexpr void grow(detail::buffer& buf, size_t size) { detail::abort_fuzzing_if(size > 5000); auto& self = static_cast(buf); const size_t max_size = std::allocator_traits::max_size(self.alloc_); size_t old_capacity = buf.capacity(); size_t new_capacity = old_capacity + old_capacity / 2; if (size > new_capacity) new_capacity = size; else if (new_capacity > max_size) new_capacity = max_of(size, max_size); T* old_data = buf.data(); T* new_data = self.alloc_.allocate(new_capacity); detail::assume(buf.size() <= new_capacity); memcpy(new_data, old_data, buf.size() * sizeof(T)); self.set(new_data, new_capacity); if (old_data != self.store_) self.alloc_.deallocate(old_data, old_capacity); } public: using value_type = T; using const_reference = const T&; constexpr explicit basic_memory_buffer( const Allocator& alloc = Allocator()) : detail::buffer(grow), alloc_(alloc) { this->set(store_, SIZE); if (detail::is_constant_evaluated()) detail::fill_n(store_, SIZE, T()); } constexpr ~basic_memory_buffer() { deallocate(); } private: template :: propagate_on_container_move_assignment::value), int> = 0 > constexpr auto move_alloc(basic_memory_buffer& other) -> bool { alloc_ = std::move(other.alloc_); return true; } template :: propagate_on_container_move_assignment::value), int> = 0 > constexpr auto move_alloc(basic_memory_buffer& other) -> bool { T* data = other.data(); if (alloc_ == other.alloc_ || data == other.store_) return true; size_t size = other.size(); this->resize(size); detail::copy(data, data + size, this->data()); return false; } constexpr void move(basic_memory_buffer& other) { T* data = other.data(); size_t size = other.size(), capacity = other.capacity(); if (!move_alloc(other)) return; if (data == other.store_) { this->set(store_, capacity); detail::copy(other.store_, other.store_ + size, store_); } else { this->set(data, capacity); other.set(other.store_, 0); other.clear(); } this->resize(size); } public: constexpr basic_memory_buffer(basic_memory_buffer&& other) noexcept : detail::buffer(grow) { move(other); } auto operator=(basic_memory_buffer&& other) noexcept -> basic_memory_buffer& { fmt::detail::ignore_unused((this != &other), ("")); deallocate(); move(other); return *this; } auto get_allocator() const -> Allocator { return alloc_; } constexpr void resize(size_t count) { this->try_resize(count); } void reserve(size_t new_capacity) { this->try_reserve(new_capacity); } using detail::buffer::append; template constexpr void append(const ContiguousRange& range) { append(range.data(), range.data() + range.size()); } }; using memory_buffer = basic_memory_buffer; template [[nodiscard]] auto to_string(const basic_memory_buffer& buf) -> std::string { auto size = buf.size(); detail::assume(size < std::string().max_size()); return {buf.data(), size}; } class writer { private: detail::buffer* buf_; FILE* file_; public: inline writer(FILE* f) : buf_(nullptr), file_(f) {} inline writer(detail::buffer& buf) : buf_(&buf) {} template void print(format_string fmt, T&&... args) { if (buf_) fmt::format_to(appender(*buf_), fmt, std::forward(args)...); else fmt::print(file_, fmt, std::forward(args)...); } }; class string_buffer { private: std::string str_; detail::container_buffer buf_; public: inline string_buffer() : buf_(str_) {} inline operator writer() { return buf_; } inline auto str() -> std::string& { return str_; } }; template struct is_contiguous> : std::true_type { }; class format_error : public std::runtime_error { public: using std::runtime_error::runtime_error; }; class loc_value; namespace detail { auto write_console(int fd, string_view text) -> bool; void print(FILE*, string_view); } namespace detail { template struct fixed_string { constexpr fixed_string(const Char (&s)[N]) { detail::copy(static_cast(s), s + N, data); } Char data[N] = {}; }; template constexpr auto compile_string_to_view(const Char (&s)[N]) -> basic_string_view { return {s, N - (std::char_traits::to_int_type(s[N - 1]) == 0 ? 1 : 0)}; } template constexpr auto compile_string_to_view(basic_string_view s) -> basic_string_view { return s; } template ::value), int> = 0> constexpr auto is_negative(T value) -> bool { return value < 0; } template ::value), int> = 0> constexpr auto is_negative(T) -> bool { return false; } template using uint32_or_64_or_128_t = conditional_t() <= 32 && !0, uint32_t, conditional_t() <= 64, uint64_t, uint128_t>>; template using uint64_or_128_t = conditional_t() <= 64, uint64_t, uint128_t>; # 1017 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" inline auto digits2(size_t value) noexcept -> const char* { alignas(2) static constexpr char data[] = "0001020304050607080910111213141516171819" "2021222324252627282930313233343536373839" "4041424344454647484950515253545556575859" "6061626364656667686970717273747576777879" "8081828384858687888990919293949596979899"; return &data[value * 2]; } inline auto digits2_i(size_t value) noexcept -> const char* { alignas(2) static constexpr char data[] = "00010203 0405060707080910 1112" "131414151617 18192021 222324 " "25262728 2930313232333435 3637" "383939404142 43444546 474849 " "50515253 5455565757585960 6162" "636464656667 68697071 727374 " "75767778 7980818282838485 8687" "888989909192 93949596 979899 "; return &data[value * 2]; } template constexpr auto getsign(sign s) -> Char { return static_cast(static_cast( ((' ' << 24) | ('+' << 16) | ('-' << 8)) >> (static_cast(s) * 8))); } template constexpr auto count_digits_fallback(T n) -> int { int count = 1; for (;;) { if (n < 10) return count; if (n < 100) return count + 1; if (n < 1000) return count + 2; if (n < 10000) return count + 3; n /= 10000u; count += 4; } } constexpr inline auto count_digits(native_uint128 n) -> int { return count_digits_fallback(n); } inline auto do_count_digits(uint64_t n) -> int { static constexpr uint8_t bsr2log10[] = { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 19, 20}; auto t = bsr2log10[__builtin_clzll(n | 1) ^ 63]; static constexpr uint64_t zero_or_powers_of_10[] = { 0, 0, 1U * 10, (1U) * 100, (1U) * 1000, (1U) * 10000, (1U) * 100000, (1U) * 1000000, (1U) * 10000000, (1U) * 100000000, (1U) * 1000000000, 1000000000ULL * 10, (1000000000ULL) * 100, (1000000000ULL) * 1000, (1000000000ULL) * 10000, (1000000000ULL) * 100000, (1000000000ULL) * 1000000, (1000000000ULL) * 10000000, (1000000000ULL) * 100000000, (1000000000ULL) * 1000000000, 10000000000000000000ULL}; return t - (n < zero_or_powers_of_10[t]); } constexpr inline auto count_digits(uint64_t n) -> int { if (!is_constant_evaluated() && !0) return do_count_digits(n); return count_digits_fallback(n); } template constexpr auto count_digits(UInt n) -> int { if (!is_constant_evaluated() && num_bits() == 32) return (__builtin_clz(static_cast(n) | 1) ^ 31) / BITS + 1; return [](UInt m) { int num_digits = 0; do { ++num_digits; } while ((m >>= BITS) != 0); return num_digits; }(n); } inline __attribute__((always_inline)) auto do_count_digits(uint32_t n) -> int { static constexpr uint64_t table[] = { (((sizeof("0") - 1ull) << 32) - 0), (((sizeof("0") - 1ull) << 32) - 0), (((sizeof("0") - 1ull) << 32) - 0), (((sizeof("10") - 1ull) << 32) - 10), (((sizeof("10") - 1ull) << 32) - 10), (((sizeof("10") - 1ull) << 32) - 10), (((sizeof("100") - 1ull) << 32) - 100), (((sizeof("100") - 1ull) << 32) - 100), (((sizeof("100") - 1ull) << 32) - 100), (((sizeof("1000") - 1ull) << 32) - 1000), (((sizeof("1000") - 1ull) << 32) - 1000), (((sizeof("1000") - 1ull) << 32) - 1000), (((sizeof("10000") - 1ull) << 32) - 10000), (((sizeof("10000") - 1ull) << 32) - 10000), (((sizeof("10000") - 1ull) << 32) - 10000), (((sizeof("100000") - 1ull) << 32) - 100000), (((sizeof("100000") - 1ull) << 32) - 100000), (((sizeof("100000") - 1ull) << 32) - 100000), (((sizeof("1000000") - 1ull) << 32) - 1000000), (((sizeof("1000000") - 1ull) << 32) - 1000000), (((sizeof("1000000") - 1ull) << 32) - 1000000), (((sizeof("10000000") - 1ull) << 32) - 10000000), (((sizeof("10000000") - 1ull) << 32) - 10000000), (((sizeof("10000000") - 1ull) << 32) - 10000000), (((sizeof("100000000") - 1ull) << 32) - 100000000), (((sizeof("100000000") - 1ull) << 32) - 100000000), (((sizeof("100000000") - 1ull) << 32) - 100000000), (((sizeof("1000000000") - 1ull) << 32) - 1000000000), (((sizeof("1000000000") - 1ull) << 32) - 1000000000), (((sizeof("1000000000") - 1ull) << 32) - 1000000000), (((sizeof("1000000000") - 1ull) << 32) - 1000000000), (((sizeof("1000000000") - 1ull) << 32) - 1000000000) }; auto inc = table[__builtin_clz(n | 1) ^ 31]; return static_cast((n + inc) >> 32); } constexpr inline auto count_digits(uint32_t n) -> int { if (!is_constant_evaluated() && !0) return do_count_digits(n); return count_digits_fallback(n); } template constexpr auto digits10() noexcept -> int { return std::numeric_limits::digits10; } template <> constexpr auto digits10() noexcept -> int { return 38; } template <> constexpr auto digits10() noexcept -> int { return 38; } template struct thousands_sep_result { std::string grouping; Char thousands_sep; }; template auto thousands_sep_impl(locale_ref loc) -> thousands_sep_result; template inline auto thousands_sep(locale_ref loc) -> thousands_sep_result { auto result = thousands_sep_impl(loc); return {std::move(result.grouping), Char(result.thousands_sep)}; } template <> inline auto thousands_sep(locale_ref loc) -> thousands_sep_result { return thousands_sep_impl(loc); } template auto decimal_point_impl(locale_ref loc) -> Char; template inline auto decimal_point(locale_ref loc) -> Char { return Char(decimal_point_impl(loc)); } template <> inline auto decimal_point(locale_ref loc) -> wchar_t { return decimal_point_impl(loc); } extern template auto thousands_sep_impl(locale_ref) -> thousands_sep_result; extern template auto thousands_sep_impl(locale_ref) -> thousands_sep_result; extern template auto decimal_point_impl(locale_ref) -> char; extern template auto decimal_point_impl(locale_ref) -> wchar_t; template auto equal2(const Char* lhs, const char* rhs) -> bool { return lhs[0] == Char(rhs[0]) && lhs[1] == Char(rhs[1]); } inline auto equal2(const char* lhs, const char* rhs) -> bool { return memcmp(lhs, rhs, 2) == 0; } template constexpr inline __attribute__((always_inline)) void write2digits(Char* out, size_t value) { if (!is_constant_evaluated() && std::is_same::value && !0) { memcpy(out, digits2(value), 2); return; } *out++ = static_cast('0' + value / 10); *out = static_cast('0' + value % 10); } template inline __attribute__((always_inline)) void write2digits_i(Char* out, size_t value) { if (std::is_same::value && !0) { memcpy(out, digits2_i(value), 2); return; } *out++ = static_cast(digits2_i(value)[0]); *out = static_cast(digits2_i(value)[1]); } template constexpr auto do_format_decimal(Char* out, UInt value, int size) -> Char* { fmt::detail::ignore_unused((size >= count_digits(value)), ("invalid digit count")); unsigned n = to_unsigned(size); while (value >= 100) { n -= 2; if (!is_constant_evaluated() && sizeof(UInt) == 4) { auto p = value * static_cast((1ull << 39) / 100 + 1); write2digits_i(out + n, p >> (39 - 7) & ((1 << 7) - 1)); value = static_cast(p >> 39) + (static_cast(value >= (100u << 25)) << 25); } else { write2digits(out + n, static_cast(value % 100)); value /= 100; } } if (value >= 10) { n -= 2; write2digits(out + n, static_cast(value)); } else { out[--n] = static_cast('0' + value); } return out + n; } template constexpr inline __attribute__((always_inline)) auto format_decimal(Char* out, UInt value, int num_digits) -> Char* { do_format_decimal(out, value, num_digits); return out + num_digits; } template >::value), int> = 0> constexpr auto format_decimal(OutputIt out, UInt value, int num_digits) -> OutputIt { if (auto ptr = to_pointer(out, to_unsigned(num_digits))) { do_format_decimal(ptr, value, num_digits); return out; } char buffer[digits10() + 1]; if (is_constant_evaluated()) fill_n(buffer, sizeof(buffer), '\0'); do_format_decimal(buffer, value, num_digits); return copy_noinline(buffer, buffer + num_digits, out); } template constexpr auto do_format_base2e(int base_bits, Char* out, UInt value, int size, bool upper = false) -> Char* { out += size; do { const char* digits = upper ? "0123456789ABCDEF" : "0123456789abcdef"; unsigned digit = static_cast(value & ((1u << base_bits) - 1)); *--out = static_cast(base_bits < 4 ? static_cast('0' + digit) : digits[digit]); } while ((value >>= base_bits) != 0); return out; } template constexpr auto format_base2e(int base_bits, Char* out, UInt value, int num_digits, bool upper = false) -> Char* { do_format_base2e(base_bits, out, value, num_digits, upper); return out + num_digits; } template ::value), int> = 0> constexpr inline auto format_base2e(int base_bits, OutputIt out, UInt value, int num_digits, bool upper = false) -> OutputIt { if (auto ptr = to_pointer(out, to_unsigned(num_digits))) { format_base2e(base_bits, ptr, value, num_digits, upper); return out; } char buffer[num_bits()]; if (is_constant_evaluated()) fill_n(buffer, sizeof(buffer), '\0'); format_base2e(base_bits, buffer, value, num_digits, upper); return detail::copy_noinline(buffer, buffer + num_digits, out); } class utf8_to_utf16 { private: basic_memory_buffer buffer_; public: explicit utf8_to_utf16(string_view s); inline operator basic_string_view() const { return {&buffer_[0], size()}; } inline auto size() const -> size_t { return buffer_.size() - 1; } inline auto c_str() const -> const wchar_t* { return &buffer_[0]; } inline auto str() const -> std::wstring { return {&buffer_[0], size()}; } }; enum class to_utf8_error_policy { abort, replace, wtf }; inline void to_utf8_3bytes(buffer& buf, uint32_t cp) { buf.push_back(static_cast(0xe0 | (cp >> 12))); buf.push_back(static_cast(0x80 | ((cp & 0xfff) >> 6))); buf.push_back(static_cast(0x80 | (cp & 0x3f))); } template class to_utf8 { private: Buffer buffer_; public: to_utf8() {} explicit to_utf8(basic_string_view s, to_utf8_error_policy policy = to_utf8_error_policy::abort) { static_assert(sizeof(WChar) == 2 || sizeof(WChar) == 4, "expected utf16 or utf32"); if (!convert(s, policy)) { throw std::runtime_error(sizeof(WChar) == 2 ? "invalid utf16" : "invalid utf32") ; } } operator string_view() const { return string_view(&buffer_[0], size()); } auto size() const -> size_t { return buffer_.size() - 1; } auto c_str() const -> const char* { return &buffer_[0]; } auto str() const -> std::string { return std::string(&buffer_[0], size()); } auto convert(basic_string_view s, to_utf8_error_policy policy = to_utf8_error_policy::abort) -> bool { if (!convert(buffer_, s, policy)) return false; buffer_.push_back(0); return true; } static auto convert(Buffer& buf, basic_string_view s, to_utf8_error_policy policy = to_utf8_error_policy::abort) -> bool { for (auto p = s.begin(); p != s.end(); ++p) { uint32_t c = static_cast(*p); if (sizeof(WChar) == 2 && c >= 0xd800 && c <= 0xdfff) { ++p; if (p == s.end() || (c & 0xfc00) != 0xd800 || (*p & 0xfc00) != 0xdc00) { switch (policy) { case to_utf8_error_policy::abort: return false; case to_utf8_error_policy::replace: buf.append(string_view("\xEF\xBF\xBD")); break; case to_utf8_error_policy::wtf: to_utf8_3bytes(buf, c); break; } --p; continue; } c = (c << 10) + static_cast(*p) - 0x35fdc00; } if (c < 0x80) { buf.push_back(static_cast(c)); } else if (c < 0x800) { buf.push_back(static_cast(0xc0 | (c >> 6))); buf.push_back(static_cast(0x80 | (c & 0x3f))); } else if ((c >= 0x800 && c <= 0xd7ff) || (c >= 0xe000 && c <= 0xffff)) { to_utf8_3bytes(buf, c); } else if (c >= 0x10000 && c <= 0x10ffff) { buf.push_back(static_cast(0xf0 | (c >> 18))); buf.push_back(static_cast(0x80 | ((c & 0x3ffff) >> 12))); buf.push_back(static_cast(0x80 | ((c & 0xfff) >> 6))); buf.push_back(static_cast(0x80 | (c & 0x3f))); } else { return false; } } return true; } }; inline __attribute__((always_inline)) auto umul128(uint64_t x, uint64_t y) noexcept -> uint128 { auto p = static_cast(x) * static_cast(y); return {static_cast(p >> 64), static_cast(p)}; # 1437 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" } namespace dragonbox { inline auto floor_log10_pow2(int e) noexcept -> int { fmt::detail::ignore_unused((e <= 2620 && e >= -2620), ("too large exponent")); static_assert((-1 >> 1) == -1, "right shift is not arithmetic"); return (e * 315653) >> 20; } inline auto floor_log2_pow10(int e) noexcept -> int { fmt::detail::ignore_unused((e <= 1233 && e >= -1233), ("too large exponent")); return (e * 1741647) >> 19; } inline auto umul128_upper64(uint64_t x, uint64_t y) noexcept -> uint64_t { auto p = static_cast(x) * static_cast(y); return static_cast(p >> 64); } inline auto umul192_upper128(uint64_t x, uint128 y) noexcept -> uint128 { uint128 r = umul128(x, y.high()); r += umul128_upper64(x, y.low()); return r; } auto get_cached_power(int k) noexcept -> uint128; template struct float_info; template <> struct float_info { using carrier_uint = uint32_t; static constexpr int exponent_bits = 8; static constexpr int kappa = 1; static constexpr int big_divisor = 100; static constexpr int small_divisor = 10; static constexpr int min_k = -31; enum { max_k = 46 }; static constexpr int shorter_interval_tie_lower_threshold = -35; static constexpr int shorter_interval_tie_upper_threshold = -35; }; template <> struct float_info { using carrier_uint = uint64_t; static constexpr int exponent_bits = 11; static constexpr int kappa = 2; static constexpr int big_divisor = 1000; static constexpr int small_divisor = 100; static constexpr int min_k = -292; enum { max_k = 341 }; static constexpr int shorter_interval_tie_lower_threshold = -77; static constexpr int shorter_interval_tie_upper_threshold = -77; }; template struct float_info::digits == 64 || std::numeric_limits::digits == 113 || is_float128::value>> { using carrier_uint = detail::uint128_t; static const int exponent_bits = 15; }; template struct float_info::value>> { using carrier_uint = detail::uint128_t; }; template struct decimal_fp { using significand_type = typename float_info::carrier_uint; significand_type significand; int exponent; }; template auto to_decimal(T x) noexcept -> decimal_fp; } template constexpr auto has_implicit_bit() -> bool { return std::numeric_limits::digits != 64; } template constexpr auto num_significand_bits() -> int { return is_float128() ? 112 : (std::numeric_limits::digits - (has_implicit_bit() ? 1 : 0)); } template constexpr auto exponent_mask() -> typename dragonbox::float_info::carrier_uint { using float_uint = typename dragonbox::float_info::carrier_uint; return ((float_uint(1) << dragonbox::float_info::exponent_bits) - 1) << num_significand_bits(); } template constexpr auto exponent_bias() -> int { return is_float128() ? 16383 : std::numeric_limits::max_exponent - 1; } constexpr inline auto compute_exp_size(int exp) -> int { auto prefix_size = 2; auto abs_exp = exp >= 0 ? exp : -exp; if (abs_exp < 100) return prefix_size + 2; return prefix_size + (abs_exp >= 1000 ? 4 : 3); } template constexpr auto write_exponent(int exp, OutputIt out) -> OutputIt { fmt::detail::ignore_unused((-10000 < exp && exp < 10000), ("exponent out of range")); if (exp < 0) { *out++ = static_cast('-'); exp = -exp; } else { *out++ = static_cast('+'); } auto uexp = static_cast(exp); if (is_constant_evaluated()) { if (uexp < 10) *out++ = '0'; return format_decimal(out, uexp, count_digits(uexp)); } if (uexp >= 100u) { const char* top = digits2(uexp / 100); if (uexp >= 1000u) *out++ = static_cast(top[0]); *out++ = static_cast(top[1]); uexp %= 100; } const char* d = digits2(uexp); *out++ = static_cast(d[0]); *out++ = static_cast(d[1]); return out; } template struct basic_fp { F f; int e; static constexpr int num_significand_bits = static_cast(sizeof(F) * num_bits()); constexpr basic_fp() : f(0), e(0) {} constexpr basic_fp(uint64_t f_val, int e_val) : f(f_val), e(e_val) {} template constexpr basic_fp(Float n) { assign(n); } template ::value), int> = 0> constexpr auto assign(Float n) -> bool { static_assert(std::numeric_limits::digits <= 113, "unsupported FP"); using carrier_uint = typename dragonbox::float_info::carrier_uint; const auto num_float_significand_bits = detail::num_significand_bits(); const auto implicit_bit = carrier_uint(1) << num_float_significand_bits; const auto significand_mask = implicit_bit - 1; auto u = bit_cast(n); f = static_cast(u & significand_mask); auto biased_e = static_cast((u & exponent_mask()) >> num_float_significand_bits); auto is_predecessor_closer = f == 0 && biased_e > 1; if (biased_e == 0) biased_e = 1; else if (has_implicit_bit()) f += static_cast(implicit_bit); e = biased_e - exponent_bias() - num_float_significand_bits; if (!has_implicit_bit()) ++e; return is_predecessor_closer; } template ::value), int> = 0> constexpr auto assign(Float n) -> bool { static_assert(std::numeric_limits::is_iec559, "unsupported FP"); return assign(static_cast(n)); } }; using fp = basic_fp; template constexpr auto normalize(basic_fp value) -> basic_fp { const auto implicit_bit = F(1) << num_significand_bits(); const auto shifted_implicit_bit = implicit_bit << SHIFT; while ((value.f & shifted_implicit_bit) == 0) { value.f <<= 1; --value.e; } const auto offset = basic_fp::num_significand_bits - num_significand_bits() - SHIFT - 1; value.f <<= offset; value.e -= offset; return value; } constexpr inline auto multiply(uint64_t lhs, uint64_t rhs) -> uint64_t { auto product = static_cast<__uint128_t>(lhs) * rhs; auto f = static_cast(product >> 64); return (static_cast(product) & (1ULL << 63)) != 0 ? f + 1 : f; # 1671 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" } constexpr inline auto operator*(fp x, fp y) -> fp { return {multiply(x.f, y.f), x.e + y.e + 64}; } template () == num_bits()> using convert_float_result = conditional_t::value || doublish, double, T>; template constexpr auto convert_float(T value) -> convert_float_result { return static_cast>(value); } template = 0> auto select(T true_value, F) -> T { return true_value; } template = 0> auto select(T, F false_value) -> F { return false_value; } template constexpr __attribute__((noinline)) auto fill(OutputIt it, size_t n, const basic_specs& specs) -> OutputIt { auto fill_size = specs.fill_size(); if (fill_size == 1) return detail::fill_n(it, n, specs.fill_unit()); if (const Char* data = specs.fill()) { for (size_t i = 0; i < n; ++i) it = copy(data, data + fill_size, it); } return it; } template constexpr auto write_padded(OutputIt out, const format_specs& specs, size_t size, size_t width, F&& f) -> OutputIt { 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; auto* shifts = default_align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01"; size_t left_padding = padding >> shifts[static_cast(specs.align())]; size_t right_padding = padding - left_padding; auto it = reserve(out, size + padding * specs.fill_size()); if (left_padding != 0) it = fill(it, left_padding, specs); it = f(it); if (right_padding != 0) it = fill(it, right_padding, specs); return base_iterator(out, it); } template constexpr auto write_padded(OutputIt out, const format_specs& specs, size_t size, F&& f) -> OutputIt { return write_padded(out, specs, size, size, f); } template constexpr auto write_bytes(OutputIt out, string_view bytes, const format_specs& specs = {}) -> OutputIt { return write_padded( out, specs, bytes.size(), [bytes](reserve_iterator it) { const char* data = bytes.data(); return copy(data, data + bytes.size(), it); }); } template auto write_ptr(OutputIt out, UIntPtr value, const format_specs* specs) -> OutputIt { int num_digits = count_digits<4>(value); auto size = to_unsigned(num_digits) + size_t(2); auto write = [=](reserve_iterator it) { *it++ = static_cast('0'); *it++ = static_cast('x'); return format_base2e(4, it, value, num_digits); }; return specs ? write_padded(out, *specs, size, write) : base_iterator(out, write(reserve(out, size))); } 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 constexpr (0 > 1) return false; return !is_printable(cp); } template struct find_escape_result { const Char* begin; const Char* end; uint32_t cp; }; template auto find_escape(const Char* begin, const Char* end) -> find_escape_result { for (; begin != end; ++begin) { uint32_t cp = static_cast>(*begin); if (sizeof(Char) == 1 && cp >= 0x80) continue; if (needs_escape(cp)) return {begin, begin + 1, cp}; } return {begin, nullptr, 0}; } inline auto find_escape(const char* begin, const char* end) -> find_escape_result { if constexpr (!use_utf8) return find_escape(begin, end); auto result = find_escape_result{end, nullptr, 0}; for_each_codepoint(string_view(begin, to_unsigned(end - begin)), [&](uint32_t cp, string_view sv) { if (needs_escape(cp)) { result = {sv.begin(), sv.end(), cp}; return false; } return true; }); return result; } template auto write_codepoint(OutputIt out, char prefix, uint32_t cp) -> OutputIt { *out++ = static_cast('\\'); *out++ = static_cast(prefix); Char buf[width]; fill_n(buf, width, static_cast('0')); format_base2e(4, buf, cp, width); return copy(buf, buf + width, out); } template auto write_escaped_cp(OutputIt out, const find_escape_result& escape) -> OutputIt { auto c = static_cast(escape.cp); switch (escape.cp) { case '\n': *out++ = static_cast('\\'); c = static_cast('n'); break; case '\r': *out++ = static_cast('\\'); c = static_cast('r'); break; case '\t': *out++ = static_cast('\\'); c = static_cast('t'); break; case '"': [[fallthrough]]; case '\'': [[fallthrough]]; case '\\': *out++ = static_cast('\\'); break; default: if (escape.cp < 0x100) return write_codepoint<2, Char>(out, 'x', escape.cp); if (escape.cp < 0x10000) return write_codepoint<4, Char>(out, 'u', escape.cp); if (escape.cp < 0x110000) return write_codepoint<8, Char>(out, 'U', escape.cp); for (Char escape_char : basic_string_view( escape.begin, to_unsigned(escape.end - escape.begin))) { out = write_codepoint<2, Char>(out, 'x', static_cast(escape_char) & 0xFF); } return out; } *out++ = c; return out; } template auto write_escaped_string(OutputIt out, basic_string_view str) -> OutputIt { *out++ = static_cast('"'); auto begin = str.begin(), end = str.end(); do { auto escape = find_escape(begin, end); out = copy(begin, escape.begin, out); begin = escape.end; if (!begin) break; out = write_escaped_cp(out, escape); } while (begin != end); *out++ = static_cast('"'); return out; } template auto write_escaped_char(OutputIt out, Char v) -> OutputIt { Char v_array[1] = {v}; *out++ = static_cast('\''); if ((needs_escape(static_cast(v)) && v != static_cast('"')) || v == static_cast('\'')) { out = write_escaped_cp(out, find_escape_result{v_array, v_array + 1, static_cast(v)}); } else { *out++ = v; } *out++ = static_cast('\''); return out; } template constexpr auto write_char(OutputIt out, Char value, const format_specs& specs) -> OutputIt { bool is_debug = specs.type() == presentation_type::debug; return write_padded(out, specs, 1, [=](reserve_iterator it) { if (is_debug) return write_escaped_char(it, value); *it++ = value; return it; }); } template class digit_grouping { private: std::string grouping_; std::basic_string thousands_sep_; struct next_state { std::string::const_iterator group; int pos; }; auto initial_state() const -> next_state { return {grouping_.begin(), 0}; } auto next(next_state& state) const -> int { if (thousands_sep_.empty()) return max_value(); if (state.group == grouping_.end()) return state.pos += grouping_.back(); if (*state.group <= 0 || *state.group == max_value()) return max_value(); state.pos += *state.group++; return state.pos; } public: explicit digit_grouping(locale_ref loc, bool localized = true) { if (!localized) return; auto sep = thousands_sep(loc); grouping_ = std::move(sep.grouping); if (sep.thousands_sep) thousands_sep_.assign(1, sep.thousands_sep); } digit_grouping(std::string grouping, std::basic_string sep) : grouping_(std::move(grouping)), thousands_sep_(std::move(sep)) {} auto has_separator() const -> bool { return !thousands_sep_.empty(); } auto count_separators(int num_digits) const -> int { int count = 0; auto state = initial_state(); while (num_digits > next(state)) ++count; return count; } template auto apply(Out out, basic_string_view digits) const -> Out { auto num_digits = static_cast(digits.size()); auto separators = basic_memory_buffer(); separators.push_back(0); auto state = initial_state(); while (int i = next(state)) { if (i >= num_digits) break; separators.push_back(i); } for (int i = 0, sep_index = static_cast(separators.size() - 1); i < num_digits; ++i) { if (num_digits - i == separators[sep_index]) { out = copy(thousands_sep_.data(), thousands_sep_.data() + thousands_sep_.size(), out); --sep_index; } *out++ = static_cast(digits[to_unsigned(i)]); } return out; } }; constexpr inline void prefix_append(unsigned& prefix, unsigned value) { prefix |= prefix != 0 ? value << 8 : value; prefix += (1u + (value > 0xff ? 1 : 0)) << 24; } template auto write_int(OutputIt out, UInt value, unsigned prefix, const format_specs& specs, const digit_grouping& grouping) -> OutputIt { static_assert(std::is_same, UInt>::value, ""); int num_digits = 0; auto buffer = memory_buffer(); switch (specs.type()) { default: fmt::detail::ignore_unused((false), ("")); [[fallthrough]]; case presentation_type::none: case presentation_type::dec: num_digits = count_digits(value); format_decimal(appender(buffer), value, num_digits); break; case presentation_type::hex: if (specs.alt()) prefix_append(prefix, unsigned(specs.upper() ? 'X' : 'x') << 8 | '0'); num_digits = count_digits<4>(value); format_base2e(4, appender(buffer), value, num_digits, specs.upper()); break; case presentation_type::oct: num_digits = count_digits<3>(value); if (specs.alt() && specs.precision <= num_digits && value != 0) prefix_append(prefix, '0'); format_base2e(3, appender(buffer), value, num_digits); break; case presentation_type::bin: if (specs.alt()) prefix_append(prefix, unsigned(specs.upper() ? 'B' : 'b') << 8 | '0'); num_digits = count_digits<1>(value); format_base2e(1, appender(buffer), value, num_digits); break; case presentation_type::chr: return write_char(out, static_cast(value), specs); } unsigned size = (prefix != 0 ? prefix >> 24 : 0) + to_unsigned(num_digits) + to_unsigned(grouping.count_separators(num_digits)); return write_padded( out, specs, size, size, [&](reserve_iterator it) { for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8) *it++ = static_cast(p & 0xff); return grouping.apply(it, string_view(buffer.data(), buffer.size())); }); } auto write_loc(appender out, loc_value value, const format_specs& specs, locale_ref loc) -> bool; auto write_loc(basic_appender out, loc_value value, const format_specs& specs, locale_ref loc) -> bool; template inline auto write_loc(OutputIt, const loc_value&, const format_specs&, locale_ref) -> bool { return false; } template struct write_int_arg { UInt abs_value; unsigned prefix; }; template constexpr auto make_write_int_arg(T value, sign s) -> write_int_arg> { auto prefix = 0u; auto abs_value = static_cast>(value); if (is_negative(value)) { prefix = 0x01000000 | '-'; abs_value = 0 - abs_value; } else { constexpr unsigned prefixes[4] = {0, 0, 0x1000000u | '+', 0x1000000u | ' '}; prefix = prefixes[static_cast(s)]; } return {abs_value, prefix}; } template struct loc_writer { basic_appender out; const format_specs& specs; std::basic_string sep; std::string grouping; std::basic_string decimal_point; template ::value), int> = 0> auto operator()(T value) -> bool { auto arg = make_write_int_arg(value, specs.sign()); write_int(out, static_cast>(arg.abs_value), arg.prefix, specs, digit_grouping(grouping, sep)); return true; } template ::value), int> = 0> auto operator()(T) -> bool { return false; } }; struct size_padding { unsigned size; unsigned padding; constexpr size_padding(int num_digits, unsigned prefix, const format_specs& specs) : size((prefix >> 24) + to_unsigned(num_digits)), padding(0) { if (specs.align() == align::numeric) { auto width = to_unsigned(specs.width); if (width > size) { padding = width - size; size = width; } } else if (specs.precision > num_digits) { size = (prefix >> 24) + to_unsigned(specs.precision); padding = to_unsigned(specs.precision - num_digits); } } }; template constexpr inline __attribute__((always_inline)) auto write_int(OutputIt out, write_int_arg arg, const format_specs& specs) -> OutputIt { static_assert(std::is_same>::value, ""); constexpr size_t buffer_size = num_bits(); char buffer[buffer_size]; if (is_constant_evaluated()) fill_n(buffer, buffer_size, '\0'); const char* begin = nullptr; const char* end = buffer + buffer_size; auto abs_value = arg.abs_value; auto prefix = arg.prefix; switch (specs.type()) { default: fmt::detail::ignore_unused((false), ("")); [[fallthrough]]; case presentation_type::none: case presentation_type::dec: begin = do_format_decimal(buffer, abs_value, buffer_size); break; case presentation_type::hex: begin = do_format_base2e(4, buffer, abs_value, buffer_size, specs.upper()); if (specs.alt()) prefix_append(prefix, unsigned(specs.upper() ? 'X' : 'x') << 8 | '0'); break; case presentation_type::oct: { begin = do_format_base2e(3, buffer, abs_value, buffer_size); auto num_digits = end - begin; if (specs.alt() && specs.precision <= num_digits && abs_value != 0) prefix_append(prefix, '0'); break; } case presentation_type::bin: begin = do_format_base2e(1, buffer, abs_value, buffer_size); if (specs.alt()) prefix_append(prefix, unsigned(specs.upper() ? 'B' : 'b') << 8 | '0'); break; case presentation_type::chr: return write_char(out, static_cast(abs_value), specs); } int num_digits = static_cast(end - begin); if ((specs.width | (specs.precision + 1)) == 0) { auto it = reserve(out, to_unsigned(num_digits) + (prefix >> 24)); for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8) *it++ = static_cast(p & 0xff); return base_iterator(out, copy(begin, end, it)); } auto sp = size_padding(num_digits, prefix, specs); unsigned padding = sp.padding; return write_padded( out, specs, sp.size, [=](reserve_iterator it) { for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8) *it++ = static_cast(p & 0xff); it = detail::fill_n(it, padding, static_cast('0')); return copy(begin, end, it); }); } template constexpr __attribute__((noinline)) auto write_int_noinline(OutputIt out, write_int_arg arg, const format_specs& specs) -> OutputIt { return write_int(out, arg, specs); } template ::value && !std::is_same::value && !std::is_same::value), int> = 0 > constexpr inline __attribute__((always_inline)) auto write(basic_appender out, T value, const format_specs& specs, locale_ref loc) -> basic_appender { if (specs.localized() && write_loc(out, value, specs, loc)) return out; return write_int_noinline(out, make_write_int_arg(value, specs.sign()), specs); } template ::value && !std::is_same::value && !std::is_same::value && !std::is_same>::value), int> = 0 > constexpr inline __attribute__((always_inline)) auto write(OutputIt out, T value, const format_specs& specs, locale_ref loc) -> OutputIt { if (specs.localized() && write_loc(out, value, specs, loc)) return out; return write_int(out, make_write_int_arg(value, specs.sign()), specs); } template constexpr auto write(OutputIt out, Char value, const format_specs& specs, locale_ref loc = {}) -> OutputIt { using unsigned_type = conditional_t::value, unsigned char, unsigned>; return check_char_specs(specs) ? write_char(out, value, specs) : write(out, static_cast(value), specs, loc); } template ::value), int> = 0> constexpr auto write(OutputIt out, basic_string_view s, const format_specs& specs) -> OutputIt { bool is_debug = specs.type() == presentation_type::debug; if (specs.precision < 0 && specs.width == 0) { auto&& it = reserve(out, s.size()); return is_debug ? write_escaped_string(it, s) : copy(s, it); } size_t display_width_limit = specs.precision < 0 ? # 2204 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" 3 4 (18446744073709551615UL) # 2204 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" : to_unsigned(specs.precision); size_t display_width = !is_debug || specs.precision == 0 ? 0 : 1; size_t size = !is_debug || specs.precision == 0 ? 0 : 1; for_each_codepoint(s, [&](uint32_t cp, string_view sv) { if (is_debug && needs_escape(cp)) { counting_buffer buf; write_escaped_cp(basic_appender(buf), find_escape_result{sv.begin(), sv.end(), cp}); size_t cp_width = buf.count(); if (display_width + cp_width <= display_width_limit) { display_width += cp_width; size += cp_width; if (display_width < display_width_limit && sv.end() == s.end()) { ++display_width; ++size; } return true; } size += display_width_limit - display_width; display_width = display_width_limit; return false; } size_t cp_width = display_width_of(cp); if (cp_width + display_width <= display_width_limit) { display_width += cp_width; size += sv.size(); if (is_debug && display_width < display_width_limit && sv.end() == s.end()) { ++display_width; ++size; } return true; } return false; }); struct bounded_output_iterator { reserve_iterator underlying_iterator; size_t bound; constexpr auto operator*() -> bounded_output_iterator& { return *this; } constexpr auto operator++() -> bounded_output_iterator& { return *this; } constexpr auto operator++(int) -> bounded_output_iterator& { return *this; } constexpr auto operator=(char c) -> bounded_output_iterator& { if (bound > 0) { *underlying_iterator++ = c; --bound; } return *this; } }; return write_padded( out, specs, size, display_width, [=](reserve_iterator it) { return is_debug ? write_escaped_string(bounded_output_iterator{it, size}, s) .underlying_iterator : copy(s.data(), s.data() + size, it); }); } template ::value), int> = 0> constexpr auto write(OutputIt out, basic_string_view s, const format_specs& specs) -> OutputIt { auto data = s.data(); auto size = s.size(); if (specs.precision >= 0 && to_unsigned(specs.precision) < size) size = to_unsigned(specs.precision); bool is_debug = specs.type() == presentation_type::debug; if (is_debug) { auto buf = counting_buffer(); write_escaped_string(basic_appender(buf), s); size = buf.count(); } return write_padded( out, specs, size, [=](reserve_iterator it) { return is_debug ? write_escaped_string(it, s) : copy(data, data + size, it); }); } template constexpr auto write(OutputIt out, basic_string_view s, const format_specs& specs, locale_ref) -> OutputIt { return write(out, s, specs); } template constexpr auto write(OutputIt out, const Char* s, const format_specs& specs, locale_ref) -> OutputIt { if (specs.type() == presentation_type::pointer) return write_ptr(out, bit_cast(s), &specs); if (!s) report_error("string pointer is null"); return write(out, basic_string_view(s), specs, {}); } template ::value && !std::is_same::value && !std::is_same::value), int> = 0 > constexpr auto write(OutputIt out, T value) -> OutputIt { auto abs_value = static_cast>(value); bool negative = is_negative(value); if (negative) abs_value = ~abs_value + 1; int num_digits = count_digits(abs_value); auto size = (negative ? 1 : 0) + static_cast(num_digits); if (auto ptr = to_pointer(out, size)) { if (negative) *ptr++ = static_cast('-'); format_decimal(ptr, abs_value, num_digits); return out; } if (negative) *out++ = static_cast('-'); return format_decimal(out, abs_value, num_digits); } template constexpr auto parse_align(const Char* begin, const Char* end, format_specs& specs) -> const Char* { fmt::detail::ignore_unused((begin != end), ("")); auto alignment = align::none; auto p = begin + code_point_length(begin); if (end - p <= 0) p = begin; for (;;) { switch (to_ascii(*p)) { case '<': alignment = align::left; break; case '>': alignment = align::right; break; case '^': alignment = align::center; break; } if (alignment != align::none) { if (p != begin) { auto c = *begin; if (c == '}') return begin; if (c == '{') { report_error("invalid fill character '{'"); return begin; } specs.set_fill(basic_string_view(begin, to_unsigned(p - begin))); begin = p + 1; } else { ++begin; } break; } if (p == begin) break; p = begin; } specs.set_align(alignment); return begin; } template constexpr auto write_nonfinite(OutputIt out, bool isnan, format_specs specs, sign s) -> OutputIt { auto str = isnan ? (specs.upper() ? "NAN" : "nan") : (specs.upper() ? "INF" : "inf"); constexpr size_t str_size = 3; auto size = str_size + (s != sign::none ? 1 : 0); const bool is_zero_fill = specs.fill_size() == 1 && specs.fill_unit() == '0'; if (is_zero_fill) specs.set_fill(' '); return write_padded(out, specs, size, [=](reserve_iterator it) { if (s != sign::none) *it++ = detail::getsign(s); return copy(str, str + str_size, it); }); } struct big_decimal_fp { const char* significand; int significand_size; int exponent; }; constexpr auto get_significand_size(const big_decimal_fp& f) -> int { return f.significand_size; } template inline auto get_significand_size(const dragonbox::decimal_fp& f) -> int { return count_digits(f.significand); } template constexpr auto write_significand(OutputIt out, const char* significand, int significand_size) -> OutputIt { return copy(significand, significand + significand_size, out); } template inline auto write_significand(OutputIt out, UInt significand, int significand_size) -> OutputIt { return format_decimal(out, significand, significand_size); } template constexpr auto write_significand(OutputIt out, T significand, int significand_size, int exponent, const Grouping& grouping) -> OutputIt { if (!grouping.has_separator()) { out = write_significand(out, significand, significand_size); return detail::fill_n(out, exponent, static_cast('0')); } auto buffer = memory_buffer(); write_significand(appender(buffer), significand, significand_size); detail::fill_n(appender(buffer), exponent, '0'); return grouping.apply(out, string_view(buffer.data(), buffer.size())); } template ::value), int> = 0> 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(significand % 100)); significand /= 100; } if (floating_size % 2 != 0) { *--out = static_cast('0' + significand % 10); significand /= 10; } *--out = decimal_point; format_decimal(out - integral_size, significand, integral_size); return end; } template >::value), int> = 0> inline auto write_significand(OutputIt out, UInt significand, int significand_size, int integral_size, Char decimal_point) -> OutputIt { Char buffer[digits10() + 2]; auto end = write_significand(buffer, significand, significand_size, integral_size, decimal_point); return detail::copy_noinline(buffer, end, out); } template constexpr auto write_significand(OutputIt out, const char* significand, int significand_size, int integral_size, Char decimal_point) -> OutputIt { out = detail::copy_noinline(significand, significand + integral_size, out); if (!decimal_point) return out; *out++ = decimal_point; return detail::copy_noinline(significand + integral_size, significand + significand_size, out); } template constexpr auto write_significand(OutputIt out, T significand, int significand_size, int integral_size, Char decimal_point, const Grouping& grouping) -> OutputIt { if (!grouping.has_separator()) { return write_significand(out, significand, significand_size, integral_size, decimal_point); } auto buffer = basic_memory_buffer(); write_significand(basic_appender(buffer), significand, significand_size, integral_size, decimal_point); grouping.apply( out, basic_string_view(buffer.data(), to_unsigned(integral_size))); return detail::copy_noinline(buffer.data() + integral_size, buffer.end(), out); } template consteval auto exp_upper() -> int { return std::numeric_limits::digits10 != 0 ? min_of(16, std::numeric_limits::digits10 + 1) : 16; } constexpr auto use_fixed(int exp, int exp_upper) -> bool { return exp >= -4 && exp < exp_upper; } template class fallback_digit_grouping { public: constexpr fallback_digit_grouping(locale_ref, bool) {} constexpr auto has_separator() const -> bool { return false; } constexpr auto count_separators(int) const -> int { return 0; } template constexpr auto apply(Out out, basic_string_view) const -> Out { return out; } }; template constexpr auto write_fixed(OutputIt out, const DecimalFP& f, int significand_size, Char decimal_point, const format_specs& specs, sign s, locale_ref loc = {}) -> OutputIt { using iterator = reserve_iterator; int exp = f.exponent + significand_size; long long size = significand_size + (s != sign::none ? 1 : 0); if (f.exponent >= 0) { size += f.exponent; int num_zeros = specs.precision - exp; abort_fuzzing_if(num_zeros > 5000); if (specs.alt()) { ++size; if (num_zeros <= 0 && specs.type() != presentation_type::fixed) num_zeros = 0; if (num_zeros > 0) size += num_zeros; } auto grouping = Grouping(loc, specs.localized()); size += grouping.count_separators(exp); return write_padded( out, specs, static_cast(size), [&](iterator it) { if (s != sign::none) *it++ = detail::getsign(s); it = write_significand(it, f.significand, significand_size, f.exponent, grouping); if (!specs.alt()) return it; *it++ = decimal_point; return num_zeros > 0 ? detail::fill_n(it, num_zeros, Char('0')) : it; }); } if (exp > 0) { int num_zeros = specs.alt() ? specs.precision - significand_size : 0; size += 1 + max_of(num_zeros, 0); auto grouping = Grouping(loc, specs.localized()); size += grouping.count_separators(exp); return write_padded( out, specs, static_cast(size), [&](iterator it) { if (s != sign::none) *it++ = detail::getsign(s); it = write_significand(it, f.significand, significand_size, exp, decimal_point, grouping); return num_zeros > 0 ? detail::fill_n(it, num_zeros, Char('0')) : it; }); } int num_zeros = -exp; if (significand_size == 0 && specs.precision >= 0 && specs.precision < num_zeros) { num_zeros = specs.precision; } bool pointy = num_zeros != 0 || significand_size != 0 || specs.alt(); size += 1 + (pointy ? 1 : 0) + num_zeros; return write_padded( out, specs, static_cast(size), [&](iterator it) { if (s != sign::none) *it++ = detail::getsign(s); *it++ = Char('0'); if (!pointy) return it; *it++ = decimal_point; it = detail::fill_n(it, num_zeros, Char('0')); return write_significand(it, f.significand, significand_size); }); } template constexpr auto do_write_float(OutputIt out, const DecimalFP& f, const format_specs& specs, sign s, int exp_upper, locale_ref loc) -> OutputIt { Char point = specs.localized() ? detail::decimal_point(loc) : Char('.'); int significand_size = get_significand_size(f); int exp = f.exponent + significand_size - 1; if (specs.type() == presentation_type::fixed || (specs.type() != presentation_type::exp && use_fixed(exp, specs.precision > 0 ? specs.precision : exp_upper))) { return write_fixed(out, f, significand_size, point, specs, s, loc); } int num_zeros = 0; long long size = significand_size + (s != sign::none ? 1 : 0); if (specs.alt()) { num_zeros = max_of(specs.precision - significand_size, 0); size += num_zeros; } else if (significand_size == 1) { point = Char(); } size += (point ? 1 : 0) + compute_exp_size(exp); char exp_char = specs.upper() ? 'E' : 'e'; auto write = [=](reserve_iterator it) { if (s != sign::none) *it++ = detail::getsign(s); it = write_significand(it, f.significand, significand_size, 1, point); if (num_zeros > 0) it = detail::fill_n(it, num_zeros, Char('0')); *it++ = Char(exp_char); return write_exponent(exp, it); }; size_t usize = static_cast(size); return specs.width > 0 ? write_padded(out, specs, usize, write) : base_iterator(out, write(reserve(out, usize))); } template constexpr auto write_float(OutputIt out, const DecimalFP& f, const format_specs& specs, sign s, int exp_upper, locale_ref loc) -> OutputIt { if (is_constant_evaluated()) { return do_write_float>(out, f, specs, s, exp_upper, loc); } else { return do_write_float>(out, f, specs, s, exp_upper, loc); } } template constexpr auto isnan(T value) -> bool { return value != value; } template struct has_isfinite : std::false_type {}; template struct has_isfinite> : std::true_type {}; template ::value&& has_isfinite::value), int> = 0> constexpr auto isfinite(T value) -> bool { constexpr T inf = T(std::numeric_limits::infinity()); if (is_constant_evaluated()) return !detail::isnan(value) && value < inf && value > -inf; return std::isfinite(value); } template ::value), int> = 0> constexpr auto isfinite(T value) -> bool { T inf = T(std::numeric_limits::infinity()); return !detail::isnan(value) && value < inf && value > -inf; } template ::value), int> = 0> inline __attribute__((always_inline)) constexpr auto signbit(T value) -> bool { if (is_constant_evaluated()) { if constexpr (std::numeric_limits::is_iec559) { auto bits = detail::bit_cast(static_cast(value)); return (bits >> (num_bits() - 1)) != 0; } } return std::signbit(static_cast(value)); } inline constexpr void adjust_precision(int& precision, int exp10) { if (exp10 > 0 && precision > max_value() - exp10) throw format_error("number is too big"); precision += exp10; } class bigint { private: using bigit = uint32_t; using double_bigit = uint64_t; enum { bigit_bits = num_bits() }; enum { bigits_capacity = 32 }; basic_memory_buffer bigits_; int exp_; friend struct formatter; constexpr auto get_bigit(int i) const -> bigit { return i >= exp_ && i < num_bigits() ? bigits_[i - exp_] : 0; } constexpr void subtract_bigits(int index, bigit other, bigit& borrow) { auto result = double_bigit(bigits_[index]) - other - borrow; bigits_[index] = static_cast(result); borrow = static_cast(result >> (bigit_bits * 2 - 1)); } constexpr void remove_leading_zeros() { int num_bigits = static_cast(bigits_.size()) - 1; while (num_bigits > 0 && bigits_[num_bigits] == 0) --num_bigits; bigits_.resize(to_unsigned(num_bigits + 1)); } constexpr void subtract_aligned(const bigint& other) { fmt::detail::ignore_unused((other.exp_ >= exp_), ("unaligned bigints")); fmt::detail::ignore_unused((compare(*this, other) >= 0), ("")); bigit borrow = 0; int i = other.exp_ - exp_; for (size_t j = 0, n = other.bigits_.size(); j != n; ++i, ++j) subtract_bigits(i, other.bigits_[j], borrow); if (borrow != 0) subtract_bigits(i, 0, borrow); fmt::detail::ignore_unused((borrow == 0), ("")); remove_leading_zeros(); } constexpr void multiply(uint32_t value) { bigit carry = 0; const double_bigit wide_value = value; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { double_bigit result = bigits_[i] * wide_value + carry; bigits_[i] = static_cast(result); carry = static_cast(result >> bigit_bits); } if (carry != 0) bigits_.push_back(carry); } template ::value || std::is_same::value), int> = 0 > constexpr void multiply(UInt value) { using half_uint = conditional_t::value, uint64_t, uint32_t>; const int shift = num_bits() - bigit_bits; const UInt lower = static_cast(value); const UInt upper = value >> num_bits(); UInt carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { UInt result = lower * bigits_[i] + static_cast(carry); carry = (upper * bigits_[i] << shift) + (result >> bigit_bits) + (carry >> bigit_bits); bigits_[i] = static_cast(result); } while (carry != 0) { bigits_.push_back(static_cast(carry)); carry >>= bigit_bits; } } template ::value || std::is_same::value), int> = 0 > constexpr void assign(UInt n) { size_t num_bigits = 0; do { bigits_[num_bigits++] = static_cast(n); n >>= bigit_bits; } while (n != 0); bigits_.resize(num_bigits); exp_ = 0; } public: constexpr bigint() : exp_(0) {} explicit bigint(uint64_t n) { assign(n); } bigint(const bigint&) = delete; void operator=(const bigint&) = delete; constexpr void assign(const bigint& other) { auto size = other.bigits_.size(); bigits_.resize(size); auto data = other.bigits_.data(); copy(data, data + size, bigits_.data()); exp_ = other.exp_; } template constexpr void operator=(Int n) { fmt::detail::ignore_unused((n > 0), ("")); assign(uint64_or_128_t(n)); } constexpr auto num_bigits() const -> int { return static_cast(bigits_.size()) + exp_; } constexpr auto operator<<=(int shift) -> bigint& { fmt::detail::ignore_unused((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); bigits_[i] = (bigits_[i] << shift) + carry; carry = c; } if (carry != 0) bigits_.push_back(carry); return *this; } template constexpr auto operator*=(Int value) -> bigint& { fmt::detail::ignore_unused((value > 0), ("")); multiply(uint32_or_64_or_128_t(value)); return *this; } friend constexpr auto compare(const bigint& b1, const bigint& b2) -> int { int num_bigits1 = b1.num_bigits(), num_bigits2 = b2.num_bigits(); if (num_bigits1 != num_bigits2) return num_bigits1 > num_bigits2 ? 1 : -1; int i = static_cast(b1.bigits_.size()) - 1; int j = static_cast(b2.bigits_.size()) - 1; int end = i - j; if (end < 0) end = 0; for (; i >= end; --i, --j) { bigit b1_bigit = b1.bigits_[i], b2_bigit = b2.bigits_[j]; if (b1_bigit != b2_bigit) return b1_bigit > b2_bigit ? 1 : -1; } if (i != j) return i > j ? 1 : -1; return 0; } friend constexpr auto add_compare(const bigint& lhs1, const bigint& lhs2, const bigint& rhs) -> int { int max_lhs_bigits = max_of(lhs1.num_bigits(), lhs2.num_bigits()); int num_rhs_bigits = rhs.num_bigits(); if (max_lhs_bigits + 1 < num_rhs_bigits) return -1; if (max_lhs_bigits > num_rhs_bigits) return 1; double_bigit borrow = 0; int min_exp = min_of(min_of(lhs1.exp_, lhs2.exp_), rhs.exp_); for (int i = num_rhs_bigits - 1; i >= min_exp; --i) { double_bigit sum = double_bigit(lhs1.get_bigit(i)) + lhs2.get_bigit(i); bigit rhs_bigit = rhs.get_bigit(i); if (sum > rhs_bigit + borrow) return 1; borrow = rhs_bigit + borrow - sum; if (borrow > 1) return -1; borrow <<= bigit_bits; } return borrow != 0 ? -1 : 0; } constexpr void assign_pow10(int exp) { fmt::detail::ignore_unused((exp >= 0), ("")); if (exp == 0) return *this = 1; int bitmask = 1 << (num_bits() - countl_zero(static_cast(exp)) - 1); *this = 5; bitmask >>= 1; while (bitmask != 0) { square(); if ((exp & bitmask) != 0) *this *= 5; bitmask >>= 1; } *this <<= exp; } constexpr void square() { int num_bigits = static_cast(bigits_.size()); int num_result_bigits = 2 * num_bigits; basic_memory_buffer n(std::move(bigits_)); bigits_.resize(to_unsigned(num_result_bigits)); auto sum = uint128_t(); for (int bigit_index = 0; bigit_index < num_bigits; ++bigit_index) { for (int i = 0, j = bigit_index; j >= 0; ++i, --j) { sum += double_bigit(n[i]) * n[j]; } bigits_[bigit_index] = static_cast(sum); sum >>= num_bits(); } 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;) sum += double_bigit(n[i++]) * n[j--]; bigits_[bigit_index] = static_cast(sum); sum >>= num_bits(); } remove_leading_zeros(); exp_ *= 2; } constexpr void align(const bigint& other) { int exp_difference = exp_ - other.exp_; if (exp_difference <= 0) return; int num_bigits = static_cast(bigits_.size()); bigits_.resize(to_unsigned(num_bigits + exp_difference)); for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j) bigits_[j] = bigits_[i]; fill_n(bigits_.data(), to_unsigned(exp_difference), 0U); exp_ -= exp_difference; } constexpr auto divmod_assign(const bigint& divisor) -> int { fmt::detail::ignore_unused((this != &divisor), ("")); if (compare(*this, divisor) < 0) return 0; fmt::detail::ignore_unused((divisor.bigits_[divisor.bigits_.size() - 1u] != 0), ("")); align(divisor); int quotient = 0; do { subtract_aligned(divisor); ++quotient; } while (compare(*this, divisor) >= 0); return quotient; } }; enum dragon { predecessor_closer = 1, fixup = 2, fixed = 4, }; constexpr inline void format_dragon(basic_fp value, unsigned flags, int num_digits, buffer& buf, int& exp10) { bigint numerator; bigint denominator; bigint lower; bigint upper_store; bigint* upper = nullptr; bool is_predecessor_closer = (flags & dragon::predecessor_closer) != 0; int shift = is_predecessor_closer ? 2 : 1; if (value.e >= 0) { numerator = value.f; numerator <<= value.e + shift; lower = 1; lower <<= value.e; if (is_predecessor_closer) { upper_store = 1; upper_store <<= value.e + 1; upper = &upper_store; } denominator.assign_pow10(exp10); denominator <<= shift; } else if (exp10 < 0) { numerator.assign_pow10(-exp10); lower.assign(numerator); if (is_predecessor_closer) { upper_store.assign(numerator); upper_store <<= 1; upper = &upper_store; } numerator *= value.f; numerator <<= shift; denominator = 1; denominator <<= shift - value.e; } else { numerator = value.f; numerator <<= shift; denominator.assign_pow10(exp10); denominator <<= shift - value.e; lower = 1; if (is_predecessor_closer) { upper_store = 1ULL << 1; upper = &upper_store; } } int even = static_cast((value.f & 1) == 0); if (!upper) upper = &lower; bool shortest = num_digits < 0; if ((flags & dragon::fixup) != 0) { if (add_compare(numerator, *upper, denominator) + even <= 0) { --exp10; numerator *= 10; if (num_digits < 0) { lower *= 10; if (upper != &lower) *upper *= 10; } } if ((flags & dragon::fixed) != 0) adjust_precision(num_digits, exp10 + 1); } if (shortest) { num_digits = 0; char* data = buf.data(); for (;;) { int digit = numerator.divmod_assign(denominator); bool low = compare(numerator, lower) - even < 0; bool high = add_compare(numerator, *upper, denominator) + even > 0; data[num_digits++] = static_cast('0' + digit); if (low || high) { if (!low) { ++data[num_digits - 1]; } else if (high) { int result = add_compare(numerator, numerator, denominator); if (result > 0 || (result == 0 && (digit % 2) != 0)) ++data[num_digits - 1]; } buf.try_resize(to_unsigned(num_digits)); exp10 -= num_digits - 1; return; } numerator *= 10; lower *= 10; if (upper != &lower) *upper *= 10; } } exp10 -= num_digits - 1; if (num_digits <= 0) { auto digit = '0'; if (num_digits == 0) { denominator *= 10; digit = add_compare(numerator, numerator, denominator) > 0 ? '1' : '0'; } buf.push_back(digit); return; } buf.try_resize(to_unsigned(num_digits)); for (int i = 0; i < num_digits - 1; ++i) { int digit = numerator.divmod_assign(denominator); buf[i] = static_cast('0' + digit); numerator *= 10; } int digit = numerator.divmod_assign(denominator); auto result = add_compare(numerator, numerator, denominator); if (result > 0 || (result == 0 && (digit % 2) != 0)) { if (digit == 9) { const auto overflow = '0' + 10; buf[num_digits - 1] = overflow; for (int i = num_digits - 1; i > 0 && buf[i] == overflow; --i) { buf[i] = '0'; ++buf[i - 1]; } if (buf[0] == overflow) { buf[0] = '1'; if ((flags & dragon::fixed) != 0) buf.push_back('0'); else ++exp10; } return; } ++digit; } buf[num_digits - 1] = static_cast('0' + digit); } template ::value), int> = 0> constexpr void format_hexfloat(Float value, format_specs specs, buffer& buf) { static_assert(!std::is_same::value, ""); using info = dragonbox::float_info; using carrier_uint = typename info::carrier_uint; const auto num_float_significand_bits = detail::num_significand_bits(); basic_fp f(value); f.e += num_float_significand_bits; if (!has_implicit_bit()) --f.e; const auto num_fraction_bits = num_float_significand_bits + (has_implicit_bit() ? 1 : 0); const auto num_xdigits = (num_fraction_bits + 3) / 4; const auto leading_shift = ((num_xdigits - 1) * 4); const auto leading_mask = carrier_uint(0xF) << leading_shift; const auto leading_xdigit = static_cast((f.f & leading_mask) >> leading_shift); if (leading_xdigit > 1) f.e -= (32 - countl_zero(leading_xdigit) - 1); int print_xdigits = num_xdigits - 1; if (specs.precision >= 0 && print_xdigits > specs.precision) { const int shift = ((print_xdigits - specs.precision - 1) * 4); const auto mask = carrier_uint(0xF) << shift; const auto v = static_cast((f.f & mask) >> shift); if (v >= 8) { const auto inc = carrier_uint(1) << (shift + 4); f.f += inc; f.f &= ~(inc - 1); } if (!has_implicit_bit()) { const auto implicit_bit = carrier_uint(1) << num_float_significand_bits; if ((f.f & implicit_bit) == implicit_bit) { f.f >>= 4; f.e += 4; } } print_xdigits = specs.precision; } char xdigits[num_bits() / 4]; detail::fill_n(xdigits, sizeof(xdigits), '0'); format_base2e(4, xdigits, f.f, num_xdigits, specs.upper()); while (print_xdigits > 0 && xdigits[print_xdigits] == '0') --print_xdigits; buf.push_back('0'); buf.push_back(specs.upper() ? 'X' : 'x'); buf.push_back(xdigits[0]); if (specs.alt() || print_xdigits > 0 || print_xdigits < specs.precision) buf.push_back('.'); buf.append(xdigits + 1, xdigits + 1 + print_xdigits); for (; print_xdigits < specs.precision; ++print_xdigits) buf.push_back('0'); buf.push_back(specs.upper() ? 'P' : 'p'); uint32_t abs_e; if (f.e < 0) { buf.push_back('-'); abs_e = static_cast(-f.e); } else { buf.push_back('+'); abs_e = static_cast(f.e); } format_decimal(appender(buf), abs_e, detail::count_digits(abs_e)); } template ::value), int> = 0> constexpr void format_hexfloat(Float value, format_specs specs, buffer& buf) { format_hexfloat(static_cast(value), specs, buf); } constexpr auto fractional_part_rounding_thresholds(int index) -> uint32_t { return uint32_t(u"\x9999\x828f\x8041\x8006\x8000\x8000\x8000\x8000"[index]) << 16u | uint32_t(u"\x999a\x5c29\x8938\x8db9\xa7c6\x10c7\x01ae\x002b"[index]); } template constexpr auto format_float(Float value, int precision, const format_specs& specs, bool binary32, buffer& buf) -> int { static_assert(!std::is_same::value, ""); auto converted_value = convert_float(value); const bool fixed = specs.type() == presentation_type::fixed; if (value == 0) { if (precision <= 0 || !fixed) { buf.push_back('0'); return 0; } buf.try_resize(to_unsigned(precision)); fill_n(buf.data(), precision, '0'); return -precision; } int exp = 0; bool use_dragon = true; unsigned dragon_flags = 0; if (!is_fast_float() || is_constant_evaluated()) { const auto inv_log2_10 = 0.3010299956639812; using info = dragonbox::float_info; const auto f = basic_fp(converted_value); auto e = (f.e + count_digits<1>(f.f) - 1) * inv_log2_10 - 1e-10; exp = static_cast(e); if (e > exp) ++exp; dragon_flags = dragon::fixup; } else { using info = dragonbox::float_info; auto br = bit_cast(static_cast(value)); const uint64_t significand_mask = (static_cast(1) << num_significand_bits()) - 1; uint64_t significand = (br & significand_mask); int exponent = static_cast((br & exponent_mask()) >> num_significand_bits()); if (exponent != 0) { exponent -= exponent_bias() + num_significand_bits(); significand |= (static_cast(1) << num_significand_bits()); significand <<= 1; } else { fmt::detail::ignore_unused((significand != 0), ("zeros should not appear here")); int shift = countl_zero(significand); fmt::detail::ignore_unused((shift >= num_bits() - num_significand_bits()), ("")) ; shift -= (num_bits() - num_significand_bits() - 2); exponent = (std::numeric_limits::min_exponent - num_significand_bits()) - shift; significand <<= shift; } const int k = info::kappa - dragonbox::floor_log10_pow2(exponent); exp = -k; const int beta = exponent + dragonbox::floor_log2_pow10(k); uint64_t first_segment; bool has_more_segments; int digits_in_the_first_segment; { const auto r = dragonbox::umul192_upper128( significand << beta, dragonbox::get_cached_power(k)); first_segment = r.high(); has_more_segments = r.low() != 0; if (first_segment >= 1000000000000000000ULL) { digits_in_the_first_segment = 19; } else { digits_in_the_first_segment = 18; first_segment *= 10; } } if (fixed) adjust_precision(precision, exp + digits_in_the_first_segment); if (digits_in_the_first_segment > precision) { use_dragon = false; if (precision <= 0) { exp += digits_in_the_first_segment; if (precision < 0) { buf.try_resize(0); } else { buf.try_resize(1); if ((first_segment | static_cast(has_more_segments)) > 5000000000000000000ULL) { buf[0] = '1'; } else { buf[0] = '0'; } } } else { exp += digits_in_the_first_segment - precision; # 3292 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" const uint32_t first_subsegment = static_cast( dragonbox::umul128_upper64(first_segment, 7922816251426433760ULL) >> 32); const uint64_t second_third_subsegments = first_segment - first_subsegment * 10000000000ULL; uint64_t prod; uint32_t digits; bool should_round_up; int number_of_digits_to_print = min_of(precision, 9); auto print_subsegment = [&](uint32_t subsegment, char* buffer) { int number_of_digits_printed = 0; if ((number_of_digits_to_print & 1) != 0) { prod = ((subsegment * static_cast(720575941)) >> 24) + 1; digits = static_cast(prod >> 32); *buffer = static_cast('0' + digits); number_of_digits_printed++; } else { prod = ((subsegment * static_cast(450359963)) >> 20) + 1; digits = static_cast(prod >> 32); write2digits(buffer, digits); number_of_digits_printed += 2; } while (number_of_digits_printed < number_of_digits_to_print) { prod = static_cast(prod) * static_cast(100); digits = static_cast(prod >> 32); write2digits(buffer + number_of_digits_printed, digits); number_of_digits_printed += 2; } }; print_subsegment(first_subsegment, buf.data()); if (precision <= 9) { # 3361 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" if (precision < 9) { uint32_t fractional_part = static_cast(prod); should_round_up = fractional_part >= fractional_part_rounding_thresholds( 8 - number_of_digits_to_print) || ((fractional_part >> 31) & ((digits & 1) | (second_third_subsegments != 0) | has_more_segments)) != 0; } else { should_round_up = second_third_subsegments > 5000000000ULL || (second_third_subsegments == 5000000000ULL && ((digits & 1) != 0 || has_more_segments)); } } else { const uint32_t second_subsegment = static_cast(dragonbox::umul128_upper64( second_third_subsegments, 1844674407370955162ULL)); const uint32_t third_subsegment = static_cast(second_third_subsegments) - second_subsegment * 10; number_of_digits_to_print = precision - 9; print_subsegment(second_subsegment, buf.data() + 9); if (precision < 18) { uint32_t fractional_part = static_cast(prod); should_round_up = fractional_part >= fractional_part_rounding_thresholds( 8 - number_of_digits_to_print) || ((fractional_part >> 31) & ((digits & 1) | (third_subsegment != 0) | has_more_segments)) != 0; } else { should_round_up = third_subsegment > 5 || (third_subsegment == 5 && ((digits & 1) != 0 || has_more_segments)); } } if (should_round_up) { ++buf[precision - 1]; for (int i = precision - 1; i > 0 && buf[i] > '9'; --i) { buf[i] = '0'; ++buf[i - 1]; } if (buf[0] > '9') { buf[0] = '1'; if (fixed) buf[precision++] = '0'; else ++exp; } } buf.try_resize(to_unsigned(precision)); } } else { exp += digits_in_the_first_segment - 1; } } if (use_dragon) { auto f = basic_fp(); bool is_predecessor_closer = binary32 ? f.assign(static_cast(value)) : f.assign(converted_value); if (is_predecessor_closer) dragon_flags |= dragon::predecessor_closer; if (fixed) dragon_flags |= dragon::fixed; const int max_double_digits = 767; if (precision > max_double_digits) precision = max_double_digits; format_dragon(f, dragon_flags, precision, buf, exp); } if (!fixed && !specs.alt()) { auto num_digits = buf.size(); while (num_digits > 0 && buf[num_digits - 1] == '0') { --num_digits; ++exp; } buf.try_resize(num_digits); } return exp; } template ::value), int> = 0> constexpr auto write(OutputIt out, T value, format_specs specs, locale_ref loc = {}) -> OutputIt { if (specs.localized() && write_loc(out, value, specs, loc)) return out; sign s = detail::signbit(value) ? sign::minus : specs.sign(); if (!detail::isfinite(value)) return write_nonfinite(out, detail::isnan(value), specs, s); if (specs.align() == align::numeric && s != sign::none) { *out++ = detail::getsign(s); s = sign::none; if (specs.width != 0) --specs.width; } const int exp_upper = detail::exp_upper(); int precision = specs.precision; if (precision < 0) { if (specs.type() != presentation_type::none) { precision = 6; } else if (is_fast_float::value && !is_constant_evaluated()) { auto dec = dragonbox::to_decimal(static_cast>(value)); return write_float(out, dec, specs, s, exp_upper, loc); } } memory_buffer buffer; if (specs.type() == presentation_type::hexfloat) { if (s != sign::none) buffer.push_back(detail::getsign(s)); format_hexfloat(convert_float(value), specs, buffer); return write_bytes(out, {buffer.data(), buffer.size()}, specs); } if (specs.type() == presentation_type::exp) { if (precision == max_value()) report_error("number is too big"); else ++precision; 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) { precision = 1; } int exp = format_float(convert_float(value), precision, specs, std::is_same(), buffer); specs.precision = precision; auto f = big_decimal_fp{buffer.data(), static_cast(buffer.size()), exp}; return write_float(out, f, specs, s, exp_upper, loc); } template ::value), int> = 0> constexpr auto write(OutputIt out, T value) -> OutputIt { if (is_constant_evaluated()) return write(out, value, format_specs()); auto s = detail::signbit(value) ? sign::minus : sign::none; auto mask = exponent_mask>(); if ((bit_cast(value) & mask) == mask) return write_nonfinite(out, std::isnan(value), {}, s); auto dec = dragonbox::to_decimal(static_cast>(value)); auto significand = dec.significand; int significand_size = count_digits(significand); int exponent = dec.exponent + significand_size - 1; if (use_fixed(exponent, detail::exp_upper())) { return write_fixed>( out, dec, significand_size, Char('.'), {}, s); } const char* prefix = "e+"; int abs_exponent = exponent; if (exponent < 0) { abs_exponent = -exponent; prefix = "e-"; } auto has_decimal_point = significand_size != 1; size_t size = std::is_pointer::value ? 0u : to_unsigned((s != sign::none ? 1 : 0) + significand_size + (has_decimal_point ? 1 : 0) + (abs_exponent >= 100 ? 5 : 4)); if (auto ptr = to_pointer(out, size)) { if (s != sign::none) *ptr++ = Char('-'); if (has_decimal_point) { auto begin = ptr; ptr = format_decimal(ptr, significand, significand_size + 1); *begin = begin[1]; begin[1] = '.'; } else { *ptr++ = static_cast('0' + significand); } if (std::is_same::value) { memcpy(ptr, prefix, 2); ptr += 2; } else { *ptr++ = static_cast(prefix[0]); *ptr++ = static_cast(prefix[1]); } if (abs_exponent >= 100) { *ptr++ = static_cast('0' + abs_exponent / 100); abs_exponent %= 100; } write2digits(ptr, static_cast(abs_exponent)); return select::value>(ptr + 2, out); } auto it = reserve(out, size); if (s != sign::none) *it++ = Char('-'); it = write_significand(it, significand, significand_size, 1, has_decimal_point ? Char('.') : Char()); *it++ = Char('e'); it = write_exponent(exponent, it); return base_iterator(out, it); } template ::value && !is_fast_float::value), int> = 0 > inline auto write(OutputIt out, T value) -> OutputIt { return write(out, value, {}); } template auto write(OutputIt out, monostate, format_specs = {}, locale_ref = {}) -> OutputIt { fmt::detail::ignore_unused((false), ("")); return out; } template constexpr auto write(OutputIt out, basic_string_view value) -> OutputIt { return copy_noinline(value.begin(), value.end(), out); } template ::value), int> = 0> constexpr auto write(OutputIt out, const T& value) -> OutputIt { return write(out, to_string_view(value)); } template < typename Char, typename OutputIt, typename T, bool check = std::is_enum::value && !std::is_same::value && mapped_type_constant::value != type::custom_type, fmt::enable_if_t<(check), int> = 0> constexpr auto write(OutputIt out, T value) -> OutputIt { return write(out, static_cast>(value)); } template ::value), int> = 0> constexpr auto write(OutputIt out, T value, const format_specs& specs = {}, locale_ref = {}) -> OutputIt { return specs.type() != presentation_type::none && specs.type() != presentation_type::string ? write(out, value ? 1 : 0, specs, {}) : write_bytes(out, value ? "true" : "false", specs); } template constexpr auto write(OutputIt out, Char value) -> OutputIt { auto it = reserve(out, 1); *it++ = value; return base_iterator(out, it); } template constexpr auto write(OutputIt out, const Char* value) -> OutputIt { if (value) return write(out, basic_string_view(value)); report_error("string pointer is null"); return out; } template ::value), int> = 0> auto write(OutputIt out, const T* value, const format_specs& specs = {}, locale_ref = {}) -> OutputIt { return write_ptr(out, bit_cast(value), &specs); } template ::value == type::custom_type && !std::is_fundamental::value), int> = 0 > constexpr auto write(OutputIt out, const T& value) -> OutputIt { auto f = formatter(); auto parse_ctx = parse_context({}); f.parse(parse_ctx); auto ctx = basic_format_context(out, {}, {}); return f.format(value, ctx); } template using is_builtin = bool_constant::value || 1>; template struct default_arg_formatter { using context = buffered_context; basic_appender out; void operator()(monostate) { report_error("argument not found"); } template ::value), int> = 0> void operator()(T value) { write(out, value); } template ::value), int> = 0> void operator()(T) { fmt::detail::ignore_unused((false), ("")); } void operator()(typename basic_format_arg::handle h) { auto parse_ctx = parse_context({}); auto format_ctx = context(out, {}, {}); h.format(parse_ctx, format_ctx); } }; template struct arg_formatter { basic_appender out; const format_specs& specs; [[no_unique_address]] locale_ref locale; template ::value), int> = 0> constexpr inline __attribute__((always_inline)) void operator()(T value) { detail::write(out, value, specs, locale); } template ::value), int> = 0> void operator()(T) { fmt::detail::ignore_unused((false), ("")); } void operator()(typename basic_format_arg>::handle) { } }; struct dynamic_spec_getter { template ::value), int> = 0> constexpr auto operator()(T value) -> ullong { return is_negative(value) ? ~0ull : static_cast(value); } template ::value), int> = 0> constexpr auto operator()(T) -> ullong { report_error("width/precision is not integer"); return 0; } }; template constexpr void handle_dynamic_spec( arg_id_kind kind, int& value, const arg_ref& ref, Context& ctx) { if (kind == arg_id_kind::none) return; auto arg = kind == arg_id_kind::index ? ctx.arg(ref.index) : ctx.arg(ref.name); if (!arg) report_error("argument not found"); ullong result = arg.visit(dynamic_spec_getter()); if (result > to_unsigned(max_value())) report_error("width/precision is out of range"); value = static_cast(result); } template Str> struct static_named_arg : view { static constexpr auto name = Str.data; const T& value; static_named_arg(const T& v) : value(v) {} }; template Str> struct is_named_arg> : std::true_type {}; template Str> struct is_static_named_arg> : std::true_type { }; template Str> struct udl_arg { template auto operator=(T&& value) const { return static_named_arg(std::forward(value)); } }; # 3784 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" template struct format_handler { parse_context parse_ctx; buffered_context ctx; void on_text(const Char* begin, const Char* end) { copy_noinline(begin, end, ctx.out()); } constexpr auto on_arg_id() -> int { return parse_ctx.next_arg_id(); } constexpr auto on_arg_id(int id) -> int { parse_ctx.check_arg_id(id); return id; } constexpr auto on_arg_id(basic_string_view id) -> int { parse_ctx.check_arg_id(id); int arg_id = ctx.arg_id(id); if (arg_id < 0) report_error("argument not found"); return arg_id; } inline __attribute__((always_inline)) void on_replacement_field(int id, const Char*) { ctx.arg(id).visit(default_arg_formatter{ctx.out()}); } auto on_format_specs(int id, const Char* begin, const Char* end) -> const Char* { auto arg = ctx.arg(id); if (!arg) report_error("argument not found"); if (arg.format_custom(begin, parse_ctx, ctx)) return parse_ctx.begin(); auto specs = dynamic_format_specs(); begin = parse_format_specs(begin, end, specs, parse_ctx, arg.type()); if (specs.dynamic()) { handle_dynamic_spec(specs.dynamic_width(), specs.width, specs.width_ref, ctx); handle_dynamic_spec(specs.dynamic_precision(), specs.precision, specs.precision_ref, ctx); } arg.visit(arg_formatter{ctx.out(), specs, ctx.locale()}); return begin; } [[noreturn]] void on_error(const char* message) { report_error(message); } }; using format_func = void (*)(detail::buffer&, int, const char*); void do_report_error(format_func func, int error_code, const char* message) noexcept; void format_error_code(buffer& out, int error_code, string_view message) noexcept; template template constexpr auto native_formatter::format( const T& val, FormatContext& ctx) const -> decltype(ctx.out()) { if (!specs_.dynamic()) return write(ctx.out(), val, specs_, ctx.locale()); auto specs = format_specs(specs_); handle_dynamic_spec(specs.dynamic_width(), specs.width, specs_.width_ref, ctx); handle_dynamic_spec(specs.dynamic_precision(), specs.precision, specs_.precision_ref, ctx); return write(ctx.out(), val, specs, ctx.locale()); } } template class generic_context { private: OutputIt out_; basic_format_args args_; locale_ref loc_; public: using char_type = Char; using iterator = OutputIt; enum { builtin_types = 1 }; constexpr generic_context(OutputIt out, basic_format_args args, locale_ref loc = {}) : out_(out), args_(args), loc_(loc) {} generic_context(generic_context&&) = default; generic_context(const generic_context&) = delete; void operator=(const generic_context&) = delete; constexpr auto arg(int id) const -> basic_format_arg { return args_.get(id); } auto arg(basic_string_view name) const -> basic_format_arg { return args_.get(name); } constexpr auto arg_id(basic_string_view name) const -> int { return args_.get_id(name); } constexpr auto out() const -> iterator { return out_; } constexpr void advance_to(iterator it) { if (!detail::is_back_insert_iterator()) out_ = it; } constexpr auto locale() const -> locale_ref { return loc_; } }; class loc_value { private: basic_format_arg value_; public: template ::value), int> = 0> loc_value(T value) : value_(value) {} template ::value), int> = 0> loc_value(T) {} template auto visit(Visitor&& vis) -> decltype(vis(0)) { return value_.visit(vis); } }; template class format_facet : public Locale::facet { private: std::string separator_; std::string grouping_; std::string decimal_point_; protected: virtual auto do_put(appender out, loc_value val, const format_specs& specs) const -> bool; public: static typename Locale::id id; explicit format_facet(Locale& loc); explicit format_facet(string_view sep = "", std::string grouping = "\3", std::string decimal_point = ".") : separator_(sep.data(), sep.size()), grouping_(std::move(grouping)), decimal_point_(std::move(decimal_point)) {} auto put(appender out, loc_value val, const format_specs& specs) const -> bool { return do_put(out, val, specs); } }; # 3952 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" template struct formatter : formatter { template constexpr auto format(signed char value, FormatContext& ctx) const -> decltype(ctx.out()) { return formatter::format(value, ctx); } }; template struct formatter : formatter { template constexpr auto format(unsigned char value, FormatContext& ctx) const -> decltype(ctx.out()) { return formatter::format(value, ctx); } }; template struct formatter : formatter { template constexpr auto format(short value, FormatContext& ctx) const -> decltype(ctx.out()) { return formatter::format(value, ctx); } }; template struct formatter : formatter { template constexpr auto format(unsigned short value, FormatContext& ctx) const -> decltype(ctx.out()) { return formatter::format(value, ctx); } }; template struct formatter : formatter { template constexpr auto format(long value, FormatContext& ctx) const -> decltype(ctx.out()) { return formatter::format(value, ctx); } }; template struct formatter : formatter { template constexpr auto format(unsigned long value, FormatContext& ctx) const -> decltype(ctx.out()) { return formatter::format(value, ctx); } }; template struct formatter : formatter { template constexpr auto format(Char* value, FormatContext& ctx) const -> decltype(ctx.out()) { return formatter::format(value, ctx); } }; template struct formatter, Char> : formatter, Char> { template constexpr auto format(detail::std_string_view value, FormatContext& ctx) const -> decltype(ctx.out()) { return formatter, Char>::format(value, ctx); } }; template struct formatter : formatter { template constexpr auto format(std::nullptr_t value, FormatContext& ctx) const -> decltype(ctx.out()) { return formatter::format(value, ctx); } }; template struct formatter : formatter { template constexpr auto format(void* value, FormatContext& ctx) const -> decltype(ctx.out()) { return formatter::format(value, ctx); } }; template struct formatter : formatter, Char> {}; template class formatter, Char> : public formatter, Char> {}; template struct formatter : detail::native_formatter {}; template struct formatter>> : formatter, Char> { template constexpr auto format(const T& value, FormatContext& ctx) const -> decltype(ctx.out()) { auto&& val = format_as(value); return formatter, Char>::format(val, ctx); } }; # 3993 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" template auto ptr(T p) -> const void* { static_assert(std::is_pointer::value, "fmt::ptr used with non-pointer"); return detail::bit_cast(p); } # 4006 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" template constexpr auto underlying(Enum e) noexcept -> underlying_t { return static_cast>(e); } namespace enums { template ::value), int> = 0> constexpr auto format_as(Enum e) noexcept -> underlying_t { return static_cast>(e); } } struct bytes { string_view data; inline explicit bytes(string_view s) : data(s) {} }; template <> struct formatter { private: detail::dynamic_format_specs<> specs_; public: constexpr auto parse(parse_context<>& ctx) -> const char* { return parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, detail::type::string_type); } template auto format(bytes b, FormatContext& ctx) const -> decltype(ctx.out()) { auto specs = specs_; detail::handle_dynamic_spec(specs.dynamic_width(), specs.width, specs.width_ref, ctx); detail::handle_dynamic_spec(specs.dynamic_precision(), specs.precision, specs.precision_ref, ctx); return detail::write_bytes(ctx.out(), b.data, specs); } }; template struct group_digits_view { T value; }; # 4059 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" template auto group_digits(T value) -> group_digits_view { return {value}; } template struct formatter> : formatter { private: detail::dynamic_format_specs<> specs_; public: constexpr auto parse(parse_context<>& ctx) -> const char* { return parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, detail::type::int_type); } template auto format(group_digits_view view, FormatContext& ctx) const -> decltype(ctx.out()) { auto specs = specs_; detail::handle_dynamic_spec(specs.dynamic_width(), specs.width, specs.width_ref, ctx); detail::handle_dynamic_spec(specs.dynamic_precision(), specs.precision, specs.precision_ref, ctx); auto arg = detail::make_write_int_arg(view.value, specs.sign()); return detail::write_int( ctx.out(), static_cast>(arg.abs_value), arg.prefix, specs, detail::digit_grouping("\3", ",")); } }; template struct nested_view { const formatter* fmt; const T* value; }; template struct formatter, Char> { constexpr auto parse(parse_context& ctx) -> const Char* { return ctx.begin(); } template auto format(nested_view view, FormatContext& ctx) const -> decltype(ctx.out()) { return view.fmt->format(*view.value, ctx); } }; template struct nested_formatter { private: basic_specs specs_; int width_; formatter formatter_; public: constexpr nested_formatter() : width_(0) {} constexpr auto parse(parse_context& ctx) -> const Char* { auto it = ctx.begin(), end = ctx.end(); if (it == end) return it; auto specs = format_specs(); it = detail::parse_align(it, end, specs); specs_ = specs; Char c = *it; auto width_ref = detail::arg_ref(); if ((c >= '0' && c <= '9') || c == '{') { it = detail::parse_width(it, end, specs, width_ref, ctx); width_ = specs.width; } ctx.advance_to(it); return formatter_.parse(ctx); } template auto write_padded(FormatContext& ctx, F write) const -> decltype(ctx.out()) { if (width_ == 0) return write(ctx.out()); auto buf = basic_memory_buffer(); write(basic_appender(buf)); auto specs = format_specs(); specs.width = width_; specs.copy_fill_from(specs_); specs.set_align(specs_.align()); return detail::write( ctx.out(), basic_string_view(buf.data(), buf.size()), specs); } auto nested(const T& value) const -> nested_view { return nested_view{&formatter_, &value}; } }; inline namespace literals { # 4158 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" template constexpr auto operator""_a() { using char_t = remove_cvref_t; return detail::udl_arg(); } # 4175 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" } class format_int { private: enum { buffer_size = std::numeric_limits::digits10 + 3 }; mutable char buffer_[buffer_size]; char* str_; template constexpr auto format_unsigned(UInt value) -> char* { auto n = static_cast>(value); return detail::do_format_decimal(buffer_, n, buffer_size - 1); } template constexpr auto format_signed(Int value) -> char* { auto abs_value = static_cast>(value); bool negative = value < 0; if (negative) abs_value = 0 - abs_value; auto begin = format_unsigned(abs_value); if (negative) *--begin = '-'; return begin; } public: constexpr explicit format_int(int value) : str_(format_signed(value)) {} constexpr explicit format_int(long value) : str_(format_signed(value)) {} constexpr explicit format_int(long long value) : str_(format_signed(value)) {} constexpr explicit format_int(unsigned value) : str_(format_unsigned(value)) {} constexpr explicit format_int(unsigned long value) : str_(format_unsigned(value)) {} constexpr explicit format_int(ullong value) : str_(format_unsigned(value)) {} constexpr auto size() const -> size_t { return detail::to_unsigned(buffer_ - str_ + buffer_size - 1); } constexpr auto data() const -> const char* { return str_; } constexpr auto c_str() const -> const char* { buffer_[buffer_size - 1] = '\0'; return str_; } inline auto str() const -> std::string { return {str_, size()}; } }; # 4270 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" auto vsystem_error(int error_code, string_view fmt, format_args args) -> std::system_error; # 4288 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" template auto system_error(int error_code, format_string fmt, T&&... args) -> std::system_error { return vsystem_error(error_code, fmt.str, vargs{{args...}}); } # 4307 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" void format_system_error(detail::buffer& out, int error_code, const char* message) noexcept; void report_system_error(int error_code, const char* message) noexcept; inline auto vformat(locale_ref loc, string_view fmt, format_args args) -> std::string { auto buf = memory_buffer(); detail::vformat_to(buf, fmt, args, loc); return {buf.data(), buf.size()}; } template inline __attribute__((always_inline)) auto format(locale_ref loc, format_string fmt, T&&... args) -> std::string { return vformat(loc, fmt.str, vargs{{args...}}); } template ::value), int> = 0> auto vformat_to(OutputIt out, locale_ref loc, string_view fmt, format_args args) -> OutputIt { auto&& buf = detail::get_buffer(out); detail::vformat_to(buf, fmt, args, loc); return detail::get_iterator(buf, out); } template ::value), int> = 0> inline __attribute__((always_inline)) auto format_to(OutputIt out, locale_ref loc, format_string fmt, T&&... args) -> OutputIt { return fmt::vformat_to(out, loc, fmt.str, vargs{{args...}}); } template [[nodiscard]] inline __attribute__((always_inline)) auto formatted_size(locale_ref loc, format_string fmt, T&&... args) -> size_t { auto buf = detail::counting_buffer<>(); detail::vformat_to(buf, fmt.str, vargs{{args...}}, loc); return buf.count(); } auto vformat(string_view fmt, format_args args) -> std::string; # 4363 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" template [[nodiscard]] inline __attribute__((always_inline)) auto format(format_string fmt, T&&... args) -> std::string { return vformat(fmt.str, vargs{{args...}}); } # 4376 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/ThirdParty/fmt-12.2.0/include/fmt/format.h" template ::value), int> = 0> [[nodiscard]] constexpr auto to_string(T value) -> std::string { char buffer[max_of(detail::digits10() + 2, 5)]; return {buffer, detail::write(buffer, value)}; } template ::value), int> = 0> [[nodiscard]] constexpr auto to_string(const T& value) -> std::string { return to_string(format_as(value)); } template ::value && !detail::use_format_as::value), int> = 0 > [[nodiscard]] constexpr auto to_string(const T& value) -> std::string { auto buffer = memory_buffer(); detail::write(appender(buffer), value); return {buffer.data(), buffer.size()}; } } } # 9 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/Includes/atom/Panic.hh" 2 namespace atom { namespace detail { [[noreturn]] __attribute__((visibility("default"))) void CallPanicHandler(const char* file, int line, const char* message); template [[noreturn]] void Panic(const char* file, int line, const char* format, Args&&... args) { std::string message = fmt::format(fmt::runtime(format), std::forward(args)...); CallPanicHandler(file, line, message.c_str()); } } using PanicHandlerFn = void (*)(const char* file, int line, const char* message); void __attribute__((visibility("default"))) SetPanicHandler(PanicHandlerFn handler); } #pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments" # 5 "/data/emu/gba-python/reference/src/NanoBoyAdvance/ThirdParty/atom/Sources/System/Panic.cc" 2 namespace atom { namespace detail { void DefaultPanicHandler(const char* file, int line, const char* message) { fmt::print("panic: {}:{}: {}\n", file, line, message); } static PanicHandlerFn PANIC_HANDLER_FN = &detail::DefaultPanicHandler; [[noreturn]] void CallPanicHandler(const char* file, int line, const char* message) { PANIC_HANDLER_FN(file, line, message); std::abort(); } } void SetPanicHandler(PanicHandlerFn handler) { detail::PANIC_HANDLER_FN = handler; } }